def METHOD_NAME(data_fixture, django_assert_num_queries):
    session_id = "session-id"
    user = data_fixture.create_user(session_id=session_id)
    workspace_user = action_type_registry.get_by_type(CreateWorkspaceActionType).do(
        user, "test"
    )
    updated_workspace = action_type_registry.get_by_type(UpdateWorkspaceActionType).do(
        user, cast(WorkspaceForUpdate, workspace_user.workspace), "new name"
    )
    assert updated_workspace.name == "new name"
    ActionHandler.undo(user, [RootActionScopeType.value()], session_id)
    updated_workspace.refresh_from_db()
    assert updated_workspace.name == "test"