'L{ResourceScriptDirectory.getChild} returns a resource which renders an
response with the HTTP I{NOT FOUND} status code if the indicated child
does not exist as an entry in the directory used to initialized the
L{ResourceScriptDirectory}.'

def test_notFoundChild(self):

    path = self.mktemp()
    os.makedirs(path)
    resource = ResourceScriptDirectory(path)
    request = DummyRequest(['foo'])
    child = resource.getChild('foo', request)
    d = _render(child, request)
    def cbRendered(ignored):
        self.assertEqual(request.responseCode, NOT_FOUND)
    d.addCallback(cbRendered)
    return d
