def test_getStateIncludesProcesses(self):
        """
        The list of monitored processes must be included in the pickle state.
        """
        self.pm.addProcess("foo", ["arg1", "arg2"],
                           uid=1, gid=2, env={})
        self.assertEqual(self.pm.__getstate__()['processes'],
                          {'foo': (['arg1', 'arg2'], 1, 2, {})})

        The list of monitored processes must be included in the pickle state.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/runner/test/test_procmon.py