Fix: Use rsponse.json() to fix test-failure on json-3.5

This commit is contained in:
winkidney
2019-02-22 15:44:25 +08:00
parent 47b58e9f9f
commit 814782f5ef

View File

@@ -28,8 +28,8 @@ class CreateImageTest(TestCase):
def test_post_error(self):
response = self.client.post(reverse('image-list'), {'image': None})
self.assertJSONEqual(
response.content,
self.assertEqual(
response.json(),
{
'image': [
'The submitted data was not a file. '