From 294961e6fce2c34784f304ca587850d62569b64e Mon Sep 17 00:00:00 2001 From: Keyan Pishdadian Date: Wed, 4 Mar 2015 14:48:08 -0500 Subject: [PATCH] Change tests to support older response format --- tests/test_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 015bb08d..c9a02362 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -59,7 +59,7 @@ class TestJSON(object): c = app.test_client() rv = c.post('/json', data=None, content_type='application/json') assert rv.status_code == 400 - assert '

No JSON object could be decoded

' in rv.data + assert 'No JSON object could be decoded' in rv.data def test_post_empty_json_doesnt_add_exception_to_reponse_if_no_debug(self): app = flask.Flask(__name__) @@ -71,7 +71,7 @@ class TestJSON(object): c = app.test_client() rv = c.post('/json', data=None, content_type='application/json') assert rv.status_code == 400 - assert '

No JSON object could be decoded

' not in rv.data + assert 'No JSON object could be decoded' not in rv.data def test_json_bad_requests(self): app = flask.Flask(__name__)