def test_user_list_path():
    customer_id = "whelk"
    user_list_id = "octopus"
    expected = "customers/{customer_id}/userLists/{user_list_id}".format(
        customer_id=customer_id,
        user_list_id=user_list_id,
    )
    actual = ClickViewServiceClient.user_list_path(customer_id, user_list_id)
    assert expected == actual
def test_parse_user_list_path():
    expected = {
        "customer_id": "oyster",
        "user_list_id": "nudibranch",
    }
    path = ClickViewServiceClient.user_list_path(**expected)

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