def test_list(self, private_client, private_model):
    params = private_model.orders.list('pending')
    response = private_client.orders.list(params)
    assert inspect.isgenerator(response)
    orders = list(islice(response, 10))
    assert isinstance(orders, list)
    assert ('created_at' in orders[0])
def test_list(self, private_client, private_model):
    params = private_model.orders.list('pending')
    response = private_client.orders.list(params)
    assert inspect.isgenerator(response)
    orders = list(islice(response, 10))
    assert isinstance(orders, list)
    assert ('created_at' in orders[0])