def setUp(self):
        """
        Create an L{ProcessMonitor} wrapped around a fake reactor.
        """
        self.reactor = DummyProcessReactor()
        self.pm = ProcessMonitor(reactor=self.reactor)
        self.pm.minRestartDelay = 2
        self.pm.maxRestartDelay = 10
        self.pm.threshold = 10

        Create an L{ProcessMonitor} wrapped around a fake reactor.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/runner/test/test_procmon.py