Exemple #1
0
def test_parse_account_budget_path():
    expected = {
        "customer": "whelk",
        "account_budget": "octopus",
    }
    path = AccountBudgetServiceClient.account_budget_path(**expected)

    # Check that the path construction is reversible.
    actual = AccountBudgetServiceClient.parse_account_budget_path(path)
    assert expected == actual
Exemple #2
0
def test_account_budget_path():
    customer = "squid"
    account_budget = "clam"
    expected = "customers/{customer}/accountBudgets/{account_budget}".format(
        customer=customer,
        account_budget=account_budget,
    )
    actual = AccountBudgetServiceClient.account_budget_path(
        customer, account_budget)
    assert expected == actual