diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py index 30be93c..871c440 100644 --- a/graphene_django/utils/testing.py +++ b/graphene_django/utils/testing.py @@ -109,8 +109,8 @@ class GraphQLTestCase(TestCase): the call was fine. :resp HttpResponse: Response """ - self.assertEqual(resp.status_code, 200) content = json.loads(resp.content) + self.assertEqual(resp.status_code, 200, msg or content) self.assertNotIn("errors", list(content.keys()), msg or content) def assertResponseHasErrors(self, resp, msg=None):