

def test_fallback_non_existent_flatpage(self):
    'A non-existent flatpage raises a 404 when served by the fallback middlware'
    response = self.client.get('/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_fallback_non_existent_flatpage/original