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"
    )
    workspace2_user = action_type_registry.get_by_type(CreateWorkspaceActionType).do(
        user, "test2"
    )
    action_type_registry.get_by_type(OrderWorkspacesActionType).do(
        user, [workspace_user.workspace.id, workspace2_user.workspace.id]
    )
    order_original = CoreHandler().get_workspaces_order(user)
    assert order_original == [workspace_user.workspace.id, workspace2_user.workspace.id]
    order_new = [workspace2_user.workspace.id, workspace_user.workspace.id]
    action_type_registry.get_by_type(OrderWorkspacesActionType).do(user, order_new)
    order = CoreHandler().get_workspaces_order(user)
    assert order == order_new
    ActionHandler.undo(user, [RootActionScopeType.value()], session_id)
    order = CoreHandler().get_workspaces_order(user)
    assert order == order_original
    ActionHandler.redo(user, [RootActionScopeType.value()], session_id)
    order = CoreHandler().get_workspaces_order(user)
    assert order == order_new