@override_settings(
        MIDDLEWARE_CLASSES=global_settings.MIDDLEWARE_CLASSES,
        TEMPLATE_CONTEXT_PROCESSORS=global_settings.TEMPLATE_CONTEXT_PROCESSORS,
    )
    def test_session_not_accessed(self):
        context._standard_context_processors = None

        response = self.client.get('/auth_processor_no_attr_access/')
        self.assertContains(response, "Session not accessed")

        context._standard_context_processors = None
Tests that the session is not accessed simply by including
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/auth/tests/context_processors.py/AuthContextProcessorTests.test_session_not_accessed