

def assertJsonResponse(self, url, expected_data, status=200):
    response = self.client.get(url)
    self.assertEqual(response.status_code, status)
    self.assertJSONEqual(response.content, expected_data)

dataset/ETHPy150Open mohawkhq/mohawk-data-platform/data/tests.py TestData.assertJsonResponse/original