

@override_settings(MIDDLEWARE_CLASSES=global_settings.MIDDLEWARE_CLASSES, TEMPLATE_CONTEXT_PROCESSORS=global_settings.TEMPLATE_CONTEXT_PROCESSORS)
def test_session_is_accessed(self):
    '\n        Tests that the session is accessed if the auth context processor\n        is used and relevant attributes accessed.\n        '
    context._standard_context_processors = None
    response = self.client.get('/auth_processor_attr_access/')
    self.assertContains(response, 'Session accessed')
    context._standard_context_processors = None

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/auth/tests/context_processors.py AuthContextProcessorTests.test_session_is_accessed/original