def make_request(step, url_path):
    data = {}
    client = Client()
    factory = SignedRequestFactory('POST', step.scenario.client_id,
                                   step.scenario.private_key, data)
    url = factory.build_request_url(url_path, {})
    step.scenario.response = client.post(url, data)
def make_request(step, url_path):
    client = Client()

    factory = SignedRequestFactory('GET', step.scenario.client_id,
                                   step.scenario.private_key, {})
    url = factory.build_request_url(url_path, {})
    step.scenario.response = client.get(url)