def test_parse_account_budget_path(): expected = { "customer_id": "whelk", "account_budget_id": "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_id = "squid" account_budget_id = "clam" expected = "customers/{customer_id}/accountBudgets/{account_budget_id}".format( customer_id=customer_id, account_budget_id=account_budget_id, ) actual = AccountBudgetProposalServiceClient.account_budget_path( customer_id, account_budget_id) assert expected == actual