def test_addProcessCwd(self):
        """
        L{ProcessMonitor.addProcess} takes an C{cwd} parameter that is passed
        to L{IReactorProcess.spawnProcess}.
        """
        self.pm.startService()
        self.pm.addProcess("foo", ["foo"], cwd='/mnt/lala')
        self.reactor.advance(0)
        self.assertEqual(
            self.reactor.spawnedProcesses[0]._path, '/mnt/lala')

        L{ProcessMonitor.addProcess} takes an C{cwd} parameter that is passed
        to L{IReactorProcess.spawnProcess}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/runner/test/test_procmon.py