'A L{static.File} created for a file which does not exist should render
its C{childNotFound} page.'

def test_staticFileDeletedRender(self):

    staticFile = static.File(self.mktemp())
    request = DummyRequest(['foo.bar'])
    request2 = DummyRequest(['foo.bar'])
    d = self._render(staticFile, request)
    d2 = self._render(staticFile.childNotFound, request2)
    def cbRendered2(ignored):
        def cbRendered(ignored):
            self.assertEqual(''.join(request.written), ''.join(request2.written))
        d.addCallback(cbRendered)
        return d
    d2.addCallback(cbRendered2)
    return d2
