Example #1
0
def test_customer_client_link_path():
    customer = "whelk"
    customer_client_link = "octopus"
    expected = "customers/{customer}/customerClientLinks/{customer_client_link}".format(
        customer=customer,
        customer_client_link=customer_client_link,
    )
    actual = CustomerClientLinkServiceClient.customer_client_link_path(
        customer, customer_client_link)
    assert expected == actual
Example #2
0
def test_parse_customer_client_link_path():
    expected = {
        "customer": "oyster",
        "customer_client_link": "nudibranch",
    }
    path = CustomerClientLinkServiceClient.customer_client_link_path(
        **expected)

    # Check that the path construction is reversible.
    actual = CustomerClientLinkServiceClient.parse_customer_client_link_path(
        path)
    assert expected == actual