def setUp(self):
        """
        Save the elements of C{sys.path} and the items of C{sys.modules}.
        """
        self.originalPath = sys.path[:]
        self.savedModules = sys.modules.copy()

        Save the elements of C{sys.path} and the items of C{sys.modules}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_plugin.py