def test_user_list_path():
    customer = "squid"
    user_list = "clam"
    expected = "customers/{customer}/userLists/{user_list}".format(
        customer=customer,
        user_list=user_list,
    )
    actual = UserListServiceClient.user_list_path(customer, user_list)
    assert expected == actual
def test_parse_user_list_path():
    expected = {
        "customer": "whelk",
        "user_list": "octopus",
    }
    path = UserListServiceClient.user_list_path(**expected)

    # Check that the path construction is reversible.
    actual = UserListServiceClient.parse_user_list_path(path)
    assert expected == actual