def test_parse_account_budget_path(): expected = { "customer": "whelk", "account_budget": "octopus", } path = AccountBudgetProposalServiceClient.account_budget_path(**expected) # Check that the path construction is reversible. actual = AccountBudgetProposalServiceClient.parse_account_budget_path(path) assert expected == actual
def test_account_budget_path(): customer = "squid" account_budget = "clam" expected = "customers/{customer}/accountBudgets/{account_budget}".format(customer=customer, account_budget=account_budget, ) actual = AccountBudgetProposalServiceClient.account_budget_path(customer, account_budget) assert expected == actual