def test_revertAndRepatch(self):
        """
        The returned L{monkey.MonkeyPatcher} object can re-apply the patch
        during the test run.
        """
        patch = self.test.patch(self, 'objectToPatch', self.patchedValue)
        patch.restore()
        patch.patch()
        self.assertEqual(self.objectToPatch, self.patchedValue)

        The returned L{monkey.MonkeyPatcher} object can re-apply the patch
        during the test run.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_tests.py