def test_customer_manager_link_path():
    customer = "whelk"
    customer_manager_link = "octopus"
    expected = "customers/{customer}/customerManagerLinks/{customer_manager_link}".format(
        customer=customer,
        customer_manager_link=customer_manager_link,
    )
    actual = CustomerManagerLinkServiceClient.customer_manager_link_path(
        customer, customer_manager_link)
    assert expected == actual
def test_parse_customer_manager_link_path():
    expected = {
        "customer": "oyster",
        "customer_manager_link": "nudibranch",
    }
    path = CustomerManagerLinkServiceClient.customer_manager_link_path(
        **expected)

    # Check that the path construction is reversible.
    actual = CustomerManagerLinkServiceClient.parse_customer_manager_link_path(
        path)
    assert expected == actual