def METHOD_NAME(project_name, expected_name, ctrl_init, svc_client_templates_creation, mocker):
    """Test template create project controller correct set of project name."""
    from renku.ui.service.controllers.templates_create_project import TemplatesCreateProjectCtrl
    cache, user_data = ctrl_init
    _, _, payload, _ = svc_client_templates_creation
    payload["project_name"] = project_name
    ctrl = TemplatesCreateProjectCtrl(cache, user_data, payload)
    mocker.patch.object(ctrl, "new_project_push", return_value=None)
    response = ctrl.to_response()
    # Check response.
    assert {"result"} == response.json.keys()
    assert {"project_id", "url", "namespace", "name", "slug"} == response.json["result"].keys()
    assert expected_name == response.json["result"]["slug"]