Ejemplo n.º 1
0
def test_user_list_path():
    customer_id = "winkle"
    user_list_id = "nautilus"
    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
Ejemplo n.º 2
0
def test_parse_user_list_path():
    expected = {
        "customer_id": "scallop",
        "user_list_id": "abalone",
    }
    path = ClickViewServiceClient.user_list_path(**expected)

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