

def test_view_authenticated_flatpage(self):
    'A flatpage served through a view can require authentication'
    response = self.client.get('/flatpage_root/sekrit/')
    response.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/middleware.py FlatpageMiddlewareTests.test_view_authenticated_flatpage/VarMisuse@23/57 `self`->`response`