'L{twcgi.CGIScript.render} sets the process environment
I{PATH_INFO} from the request path.'

def test_pathInfo(self):

    class FakeReactor:
        '\n                                                A    fake    reactor    recording    the    environment    passed    to    spawnProcess.\n                                                '
        def spawnProcess(self, process, filename, args, env, wdir):
            '\n                                                                Store    the    C{env}    L{dict}    to    an    instance    attribute.\n\n                                                                @param    process:    Ignored\n                                                                @param    filename:    Ignored\n                                                                @param    args:    Ignored\n                                                                @param    env:    The    environment    L{dict}    which    will    be    stored\n                                                                @param    wdir:    Ignored\n                                                                '
            self.process_env = env
    _reactor = FakeReactor()
    resource = twcgi.CGIScript(self.mktemp(), reactor=_reactor)
    request = DummyRequest(['a', 'b'])
    _render(resource, request)
    self.assertEqual(_reactor.process_env['PATH_INFO'], '/a/b')
