check json is None if body is not JSON

This commit is contained in:
Miroslav Batchkarov 2017-06-07 10:03:27 +01:00
parent 3f22b644b6
commit ddd7145153

View File

@ -41,6 +41,7 @@ def test_bp_strict_slash():
request, response = app.test_client.get('/get')
assert response.text == 'OK'
assert response.json == None
request, response = app.test_client.get('/get/')
assert response.status == 404