def test_parse_ad_group_feed_path(): expected = { "customer_id": "clam", "ad_group_id": "whelk", "feed_id": "octopus", } path = ChangeStatusServiceClient.ad_group_feed_path(**expected) # Check that the path construction is reversible. actual = ChangeStatusServiceClient.parse_ad_group_feed_path(path) assert expected == actual
def test_ad_group_feed_path(): customer_id = "scallop" ad_group_id = "abalone" feed_id = "squid" 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 = ChangeStatusServiceClient.ad_group_feed_path( customer_id, ad_group_id, feed_id) assert expected == actual