Ejemplo n.º 1
0
def test_parse_account_budget_path():
    expected = {
        "customer": "whelk",
        "account_budget": "octopus",
    }
    path = AccountBudgetProposalServiceClient.account_budget_path(**expected)

    # Check that the path construction is reversible.
    actual = AccountBudgetProposalServiceClient.parse_account_budget_path(path)
    assert expected == actual
Ejemplo n.º 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 = AccountBudgetProposalServiceClient.account_budget_path(customer, account_budget)
    assert expected == actual