self.assertEqual(response.status_code, 200)
self.assertJSONEqual(force_text(response.content), {'status': 'success'})
How to use Django's assertJSONEqual to verify response of view returning JsonResponse