Exemplo n.º 1
0
def test_parse_payments_account_path():
    expected = {
        "customer": "cuttlefish",
        "payments_account": "mussel",
    }
    path = BillingSetupServiceClient.payments_account_path(**expected)

    # Check that the path construction is reversible.
    actual = BillingSetupServiceClient.parse_payments_account_path(path)
    assert expected == actual
Exemplo n.º 2
0
def test_payments_account_path():
    customer = "oyster"
    payments_account = "nudibranch"
    expected = "customers/{customer}/paymentsAccounts/{payments_account}".format(customer=customer, payments_account=payments_account, )
    actual = BillingSetupServiceClient.payments_account_path(customer, payments_account)
    assert expected == actual