def test_keyword_plan_campaign_keyword_path(): customer = "oyster" keyword_plan_campaign_keyword = "nudibranch" expected = "customers/{customer}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword}".format( customer=customer, keyword_plan_campaign_keyword=keyword_plan_campaign_keyword, ) actual = KeywordPlanCampaignKeywordServiceClient.keyword_plan_campaign_keyword_path( customer, keyword_plan_campaign_keyword) assert expected == actual
def test_parse_keyword_plan_campaign_keyword_path(): expected = { "customer": "cuttlefish", "keyword_plan_campaign_keyword": "mussel", } path = KeywordPlanCampaignKeywordServiceClient.keyword_plan_campaign_keyword_path( **expected) # Check that the path construction is reversible. actual = KeywordPlanCampaignKeywordServiceClient.parse_keyword_plan_campaign_keyword_path( path) assert expected == actual