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