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