More robust test case

This commit is contained in:
Tom Christie 2016-10-12 15:36:32 +01:00
parent 847511ca23
commit 98c88a05bf

View File

@ -201,7 +201,7 @@ class TestAPITestClient(TestCase):
content_type='application/json'
)
self.assertEqual(response.status_code, 200, response.content)
self.assertEqual('{"flag":true}', response.content)
self.assertEqual(response.data, {"flag": True})
class TestAPIRequestFactory(TestCase):