def test_getstate(self):
        """
        Pickling an L{ProcessMonitor} results in deprecation warnings
        """
        pickle.dumps(self.pm)
        warnings = self.flushWarnings()
        for warning in warnings:
            self.assertIs(warning['category'], DeprecationWarning)

        Pickling an L{ProcessMonitor} results in deprecation warnings
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/runner/test/test_procmon.py