def setUp(self):
     """
     create the module manager and a temporary directory.
     Write a python file with several data members into
     the created temporary directory.
     """
     self.module_manager = ModuleManager()
     self.temp_dir = tempfile.TemporaryDirectory()
     self.code_filepath = os.path.join(self.temp_dir.name, "mod_test.py")
     code = 'PLUGINS = [5,4]\nfive = 5.0\ndef func():\n\tpass'
     with open(self.code_filepath, 'w+') as f:
         f.write(code)