def test_keyword_plan_ad_group_keyword_path(): customer = "oyster" keyword_plan_ad_group_keyword = "nudibranch" expected = "customers/{customer}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword}".format( customer=customer, keyword_plan_ad_group_keyword=keyword_plan_ad_group_keyword, ) actual = KeywordPlanAdGroupKeywordServiceClient.keyword_plan_ad_group_keyword_path( customer, keyword_plan_ad_group_keyword) assert expected == actual
def test_parse_keyword_plan_ad_group_keyword_path(): expected = { "customer": "cuttlefish", "keyword_plan_ad_group_keyword": "mussel", } path = KeywordPlanAdGroupKeywordServiceClient.keyword_plan_ad_group_keyword_path( **expected) # Check that the path construction is reversible. actual = KeywordPlanAdGroupKeywordServiceClient.parse_keyword_plan_ad_group_keyword_path( path) assert expected == actual