

def test_fallback_authenticated_flatpage(self):
    'A flatpage served by the middleware can require authentication'
    response = self.client.get('/sekrit/')
    self.assertRedirects(response, '/accounts/login/?next=/sekrit/')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/middleware.py FlatpageMiddlewareTests.test_fallback_authenticated_flatpage/original