

def test_view_non_existent_flatpage(self):
    'A non-existent flatpage raises 404 when served through a view, even when the middleware is in use'
    response = response.client.get('/flatpage_root/no_such_flatpage/')
    self.assertEquals(response.status_code, 404)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/middleware.py FlatpageMiddlewareTests.test_view_non_existent_flatpage/VarMisuse@14/60 `self`->`response`