Ejemplo n.º 1
0
def test_parse_billing_setup_path():
    expected = {
        "customer": "scallop",
        "billing_setup": "abalone",
    }
    path = AccountBudgetProposalServiceClient.billing_setup_path(**expected)

    # Check that the path construction is reversible.
    actual = AccountBudgetProposalServiceClient.parse_billing_setup_path(path)
    assert expected == actual
Ejemplo n.º 2
0
def test_billing_setup_path():
    customer = "winkle"
    billing_setup = "nautilus"
    expected = "customers/{customer}/billingSetups/{billing_setup}".format(customer=customer, billing_setup=billing_setup, )
    actual = AccountBudgetProposalServiceClient.billing_setup_path(customer, billing_setup)
    assert expected == actual