self.assertEqual(response.status_code, 200)
response_content = response.content
if six.PY3:
    response_content = str(response_content, encoding='utf8')
self.assertJSONEqual(response_content, {'status': 'success'})
How to use Django's assertJSONEqual to verify response of view returning JsonResponse