def test_extension_feed_item_path(): customer = "winkle" extension_feed_item = "nautilus" expected = "customers/{customer}/extensionFeedItems/{extension_feed_item}".format( customer=customer, extension_feed_item=extension_feed_item, ) actual = AdGroupExtensionSettingServiceClient.extension_feed_item_path( customer, extension_feed_item) assert expected == actual
def test_parse_extension_feed_item_path(): expected = { "customer": "scallop", "extension_feed_item": "abalone", } path = AdGroupExtensionSettingServiceClient.extension_feed_item_path( **expected) # Check that the path construction is reversible. actual = AdGroupExtensionSettingServiceClient.parse_extension_feed_item_path( path) assert expected == actual