def test_keyword_plan_campaign_path(): customer = "squid" keyword_plan_campaign = "clam" expected = "customers/{customer}/keywordPlanCampaigns/{keyword_plan_campaign}".format( customer=customer, keyword_plan_campaign=keyword_plan_campaign, ) actual = KeywordPlanCampaignKeywordServiceClient.keyword_plan_campaign_path( customer, keyword_plan_campaign) assert expected == actual
def test_parse_keyword_plan_campaign_path(): expected = { "customer": "whelk", "keyword_plan_campaign": "octopus", } path = KeywordPlanCampaignKeywordServiceClient.keyword_plan_campaign_path( **expected) # Check that the path construction is reversible. actual = KeywordPlanCampaignKeywordServiceClient.parse_keyword_plan_campaign_path( path) assert expected == actual