def test_api_get(self, func): api = Api('', 'fake_consumer_key', 'fake_consumer_secret') obj = api.get_customers() assert all(type(x) == Customer for x in obj) obj = api.get_customers(id='4') assert type(obj) == Customer and obj.id == 4
def test_object_refresh(self, func): api = Api('', 'fake_consumer_key', 'fake_consumer_secret') obj = api.get_customers(id='4') assert type(obj) == Customer and obj.id == 4 obj.refresh() assert type(obj) == Customer and obj.id == 4