'L{twcgi.FilteredScript.runProcess} uses the reactor passed as an
argument to the constructor.'

def test_useReactorArgument(self):

    class FakeReactor:
        '\n                                                A    fake    reactor    recording    whether    spawnProcess    is    called.\n                                                '
        called = False
        def spawnProcess(self, *args, **kwargs):
            '\n                                                                Set    the    C{called}    flag    to    C{True}    if    C{spawnProcess}    is    called.\n\n                                                                @param    args:    Positional    arguments.\n                                                                @param    kwargs:    Keyword    arguments.\n                                                                '
            self.called = True
    fakeReactor = FakeReactor()
    request = DummyRequest(['a', 'b'])
    resource = twcgi.FilteredScript('dummy-file', reactor=fakeReactor)
    _render(resource, request)
    self.assertTrue(fakeReactor.called)
