def test_view_authenticated_flatpage(self):
        response = self.client.get('/flatpage_root/sekrit/')
        self.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/')
A flatpage served through a view can require authentication
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/middleware.py/FlatpageMiddlewareTests.test_view_authenticated_flatpage