

def test_view_flatpage(self):
    'A flatpage can be served through a view, even when the middleware is in use'
    response = self.client.get('/flatpage_root/flatpage/')
    self.assertEquals(response.status_code, 200)
    response.assertContains(response, "<p>Isn't it flat!</p>")

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/middleware.py FlatpageMiddlewareTests.test_view_flatpage/VarMisuse@34/81 `self`->`response`