def test_parse_campaign_budget_path(): expected = { "customer": "whelk", "campaign_budget": "octopus", } path = RecommendationServiceClient.campaign_budget_path(**expected) # Check that the path construction is reversible. actual = RecommendationServiceClient.parse_campaign_budget_path(path) assert expected == actual
def test_campaign_budget_path(): customer = "squid" campaign_budget = "clam" expected = "customers/{customer}/campaignBudgets/{campaign_budget}".format(customer=customer, campaign_budget=campaign_budget, ) actual = RecommendationServiceClient.campaign_budget_path(customer, campaign_budget) assert expected == actual