def test_parse_keyword_plan_path(): expected = { "customer": "oyster", "keyword_plan": "nudibranch", } path = KeywordPlanCampaignServiceClient.keyword_plan_path(**expected) # Check that the path construction is reversible. actual = KeywordPlanCampaignServiceClient.parse_keyword_plan_path(path) assert expected == actual
def test_keyword_plan_path(): customer = "whelk" keyword_plan = "octopus" expected = "customers/{customer}/keywordPlans/{keyword_plan}".format(customer=customer, keyword_plan=keyword_plan, ) actual = KeywordPlanCampaignServiceClient.keyword_plan_path(customer, keyword_plan) assert expected == actual