def test_parse_campaign_budget_path(): expected = { "customer": "scallop", "campaign_budget": "abalone", } path = CampaignServiceClient.campaign_budget_path(**expected) # Check that the path construction is reversible. actual = CampaignServiceClient.parse_campaign_budget_path(path) assert expected == actual
def test_campaign_budget_path(): customer = "winkle" campaign_budget = "nautilus" expected = "customers/{customer}/campaignBudgets/{campaign_budget}".format(customer=customer, campaign_budget=campaign_budget, ) actual = CampaignServiceClient.campaign_budget_path(customer, campaign_budget) assert expected == actual