def test_keyword_plan_campaign_path(): customer_id = "squid" keyword_plan_campaign_id = "clam" expected = "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}".format( customer_id=customer_id, keyword_plan_campaign_id=keyword_plan_campaign_id, ) actual = KeywordPlanCampaignKeywordServiceClient.keyword_plan_campaign_path( customer_id, keyword_plan_campaign_id) assert expected == actual
def test_parse_keyword_plan_campaign_path(): expected = { "customer_id": "whelk", "keyword_plan_campaign_id": "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