def test_ad_group_feed_path(): customer_id = "oyster" ad_group_id = "nudibranch" feed_id = "cuttlefish" expected = "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}".format(customer_id=customer_id, ad_group_id=ad_group_id, feed_id=feed_id, ) actual = AdGroupFeedServiceClient.ad_group_feed_path(customer_id, ad_group_id, feed_id) assert expected == actual
def test_parse_ad_group_feed_path(): expected = { "customer_id": "mussel", "ad_group_id": "winkle", "feed_id": "nautilus", } path = AdGroupFeedServiceClient.ad_group_feed_path(**expected) # Check that the path construction is reversible. actual = AdGroupFeedServiceClient.parse_ad_group_feed_path(path) assert expected == actual