'Helper method for sending a POST to the server. Verifies the expected status and returns the response.'

def send_post(self, client, url, data, content_type='application/json', expected_status=201):

    response = client.post(url, data=json.dumps(data), content_type=content_type)
    self.assertEqual(expected_status, response.status_code)
    return response
