mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
More robust test case
This commit is contained in:
parent
847511ca23
commit
98c88a05bf
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user