Exemple #1
0
def test_parse_customer_path():
    expected = {
        "customer": "nudibranch",
    }
    path = CustomerServiceClient.customer_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerServiceClient.parse_customer_path(path)
    assert expected == actual
Exemple #2
0
def test_customer_path():
    customer = "oyster"
    expected = "customers/{customer}".format(customer=customer, )
    actual = CustomerServiceClient.customer_path(customer)
    assert expected == actual