def test_standard404(self):
        root = Root()
        def later(resource):
            self.failUnless(isinstance(resource, rend.FourOhFour))
            def morelater((code, html)):
                self.assertEquals(rend.FourOhFour.notFound, html)
                self.assertEquals(code, 404)
            return renderResource('/foo').addCallback(morelater)
        return getResource(root, '/foo').addCallback(later)
Test the standard 404 handler.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_errorhandler.py/Test404.test_standard404