def METHOD_NAME(self):
    # Arrange
    request = MagicMock()
    flag_name = "test"
    # Act
    SaveSessionFeatureFlagMiddleware.enable_feature_flag(request, flag_name)
    # Assert
    request.session.__setitem__.assert_called_once_with(flag_name, True)