'L{twcgi.CGIDirectory.render} sets the HTTP response code to I{NOT
FOUND}.'

def test_render(self):

    resource = twcgi.CGIDirectory(self.mktemp())
    request = DummyRequest([''])
    d = _render(resource, request)
    def cbRendered(ignored):
        self.assertEqual(request.responseCode, NOT_FOUND)
    d.addCallback(cbRendered)
    return d
