def test_cancel(self, private_client, private_model):
    json = private_model.orders.limit('buy', 'BTC-USD', 40000.0, 0.001)
    order = private_client.orders.post(json)
    time.sleep(0.2)
    params = private_model.orders.cancel('BTC-USD')
    response = private_client.orders.cancel(order['id'], params)
    assert isinstance(response, list)
    assert (response[0] == order['id'])
def test_cancel(self, private_client, private_model):
    json = private_model.orders.limit('buy', 'BTC-USD', 40000.0, 0.001)
    order = private_client.orders.post(json)
    time.sleep(0.2)
    params = private_model.orders.cancel('BTC-USD')
    response = private_client.orders.cancel(order['id'], params)
    assert isinstance(response, list)
    assert (response[0] == order['id'])