def test_childrenNotFound(self):
    '\n        Any child resource of L{static.DirectoryLister} renders an HTTP\n        I{NOT FOUND} response code.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    request = self._request(b'')
    child = resource.getChildForRequest(lister, request)
    result = _render(child, request)

    def cbRendered(ignored):
        self.assertEqual(request.responseCode, http.NOT_FOUND)
    result.addCallback(cbRendered)
    return result
Any child resource of L{static.DirectoryLister} renders an HTTP
I{NOT FOUND} response code.
def test_childrenNotFound(self):
    '\n        Any child resource of L{static.DirectoryLister} renders an HTTP\n        I{NOT FOUND} response code.\n        '
    path = FilePath(self.mktemp())
    path.makedirs()
    lister = static.DirectoryLister(path.path)
    request = self._request(b)
    child = resource.getChildForRequest(lister, request)
    result = _render(child, request)

    def cbRendered(ignored):
        self.assertEqual(request.responseCode, http.NOT_FOUND)
    result.addCallback(cbRendered)
    return result