def test_account_budget_proposal_path(): customer_id = "oyster" account_budget_proposal_id = "nudibranch" expected = "customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}".format( customer_id=customer_id, account_budget_proposal_id=account_budget_proposal_id, ) actual = AccountBudgetServiceClient.account_budget_proposal_path( customer_id, account_budget_proposal_id) assert expected == actual
def test_parse_account_budget_proposal_path(): expected = { "customer_id": "cuttlefish", "account_budget_proposal_id": "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