'send a post request to a url'

def _post(self, path, data):

    resp = self.app.post(path, data=json.dumps(data), headers={'content-type': 'application/json'})
    self.assertEqual(resp.status_code, 201)
    return resp
