def test_account_budget_proposal_path(): customer = "oyster" account_budget_proposal = "nudibranch" expected = "customers/{customer}/accountBudgetProposals/{account_budget_proposal}".format( customer=customer, account_budget_proposal=account_budget_proposal, ) actual = AccountBudgetServiceClient.account_budget_proposal_path( customer, account_budget_proposal) assert expected == actual
def test_parse_account_budget_proposal_path(): expected = { "customer": "cuttlefish", "account_budget_proposal": "mussel", } path = AccountBudgetServiceClient.account_budget_proposal_path(**expected) # Check that the path construction is reversible. actual = AccountBudgetServiceClient.parse_account_budget_proposal_path( path) assert expected == actual