def test_renderNotFound(self):
        """
        L{ResourceScriptDirectory.render} sets the HTTP response code to I{NOT
        FOUND}.
        """
        resource = ResourceScriptDirectory(self.mktemp())
        request = DummyRequest([b''])
        d = _render(resource, request)
        def cbRendered(ignored):
            self.assertEqual(request.responseCode, NOT_FOUND)
        d.addCallback(cbRendered)
        return d

        L{ResourceScriptDirectory.render} sets the HTTP response code to I{NOT
        FOUND}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_script.py