'If a request is made which encounters a L{File} before a final segment
which does not correspond to any file in the path the L{File} was
created with, a not found response is sent.'

def test_notFound(self):

    base = FilePath(self.mktemp())
    base.makedirs()
    file = static.File(base.path)
    request = DummyRequest(['foobar'])
    child = resource.getChildForRequest(file, request)
    d = self._render(child, request)
    def cbRendered(ignored):
        self.assertEqual(request.responseCode, 404)
    d.addCallback(cbRendered)
    return d
