コード例 #1
0
def test_parse_customer_path():
    expected = {
        "customer": "clam",
    }
    path = CustomerLabelServiceClient.customer_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerLabelServiceClient.parse_customer_path(path)
    assert expected == actual
コード例 #2
0
def test_customer_path():
    customer = "squid"
    expected = "customers/{customer}".format(customer=customer, )
    actual = CustomerLabelServiceClient.customer_path(customer)
    assert expected == actual