def test_view_flatpage(self):
        response = self.client.get('/flatpage_root/flatpage/')
        self.assertEquals(response.status_code, 200)
        self.assertContains(response, "<p>Isn't it flat!</p>")
A flatpage can be served through a view, even when the middleware is in use
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/middleware.py/FlatpageMiddlewareTests.test_view_flatpage