def test_render(self):
        resource = ResourceScriptDirectory(self.mktemp())
        request = DummyRequest([''])
        d = _render(resource, request)
        def cbRendered(ignored):
            self.assertEqual(request.responseCode, NOT_FOUND)
        d.addCallback(cbRendered)
        return d
Encode and write a Record to a socket.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_script.py/ResourceScriptDirectoryTests.test_render--crossover with--dataset/ETHPy150Open kdart/pycopia/core/pycopia/inet/fcgi.py/Record.write