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
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