def _404Test(self, name):
    '\n        Verify that requesting the C{name} child of C{self.directory} results\n        in a 404 response.\n        '
    request = DummyRequest([name])
    result = self.directory.getChild(name, request)
    d = _render(result, request)

    def cbRendered(ignored):
        self.assertEqual(request.responseCode, 404)
    d.addCallback(cbRendered)
    return d
Verify that requesting the C{name} child of C{self.directory} results
in a 404 response.
def _404Test(self, name):
    '\n        Verify that requesting the C{name} child of C{self.directory} results\n        in a 404 response.\n        '
    request = DummyRequest([name])
    result = self.directory.getChild(name, request)
    d = _render(result, request)

    def cbRendered(ignored):
        self.assertEqual(request.responseCode, 404)
    d.addCallback(cbRendered)
    return d