Exemplo n.º 1
0
def test_parse_account_budget_path():
    expected = {
        "customer_id": "whelk",
        "account_budget_id": "octopus",
    }
    path = AccountBudgetServiceClient.account_budget_path(**expected)

    # Check that the path construction is reversible.
    actual = AccountBudgetServiceClient.parse_account_budget_path(path)
    assert expected == actual
Exemplo n.º 2
0
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 = AccountBudgetServiceClient.account_budget_path(
        customer_id, account_budget_id)
    assert expected == actual