Move the logout logic to the auth manager
user = User()
        user.first_name = first_name
        user.last_name = last_name
        mock_get_user.return_value = user
        assert auth_manager.get_user_name() == expected
    @mock.patch("flask_login.utils._get_user")
    def test_get_user(self, mock_current_user, auth_manager):
        user = Mock()
        user.is_anonymous.return_value = True
        mock_current_user.return_value = user
        assert auth_manager.get_user() == user
    @mock.patch.object(FabAuthManager, "get_user")
    def test_get_user_id(self, mock_get_user, auth_manager):
        user_id = "test"
        user = Mock()
        user.get_id.return_value = user_id
        mock_get_user.return_value = user
        assert auth_manager.get_user_id() == user_id
    @mock.patch.object(FabAuthManager, "get_user")
    def test_is_logged_in(self, mock_get_user, auth_manager):
        user = Mock()
        user.is_anonymous.return_value = True
        mock_get_user.return_value = user
        assert auth_manager.is_logged_in() is False
    def test_get_security_manager_override_class_return_fab_security_manager_override(self, auth_manager):