'Assert that the response has the given status code and parsed content'

def assert_response_correct(self, response, expected_status, expected_content):

    self.assertEqual(response.status_code, expected_status)
    parsed_content = json.loads(response.content)
    self.assertEqual(parsed_content, expected_content)
