Example #1
0
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 = AccountBudgetProposalServiceClient.account_budget_proposal_path(
        customer_id, account_budget_proposal_id)
    assert expected == actual
Example #2
0
def test_parse_account_budget_proposal_path():
    expected = {
        "customer_id": "cuttlefish",
        "account_budget_proposal_id": "mussel",
    }
    path = AccountBudgetProposalServiceClient.account_budget_proposal_path(
        **expected)

    # Check that the path construction is reversible.
    actual = AccountBudgetProposalServiceClient.parse_account_budget_proposal_path(
        path)
    assert expected == actual