'Asserts the detail field in the response\'s JSON body equals the expected message.'

def assertResponseMessage(self, response, expected_msg):

    actual = json.loads(response.content)['detail']
    self.assertEqual(actual, expected_msg)
