def restore(self):
        """
        Restore all original values to any patched objects.
        """
        while self._originals:
            obj, name, value = self._originals.pop()
            setattr(obj, name, value)

        Restore all original values to any patched objects.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/monkey.py