diff --git a/core/tests/views.py b/core/tests/views.py index a3fadff..7cb10b4 100644 --- a/core/tests/views.py +++ b/core/tests/views.py @@ -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. '