def test_api_get(self, func): api = Api('', 'fake_consumer_key', 'fake_consumer_secret') obj = api.get_product_variations(56) assert all(type(x) == ProductVariation for x in obj) obj = api.get_product_variations(56, 57) assert type(obj) == ProductVariation and obj.id == 57
def test_object_refresh(self, func): api = Api('', 'fake_consumer_key', 'fake_consumer_secret') obj = api.get_product_variations(56, 57) assert type(obj) == ProductVariation and obj.id == 57 obj.refresh() assert type(obj) == ProductVariation and obj.id == 57