Пример #1
0
 def test_mod_import_from_path_invalid(self):
     test_path = self._t_dir_file("invalid_filename.py")
     loaded_mod = utils.mod_import_from_path(test_path)
     self.assertIsNone(loaded_mod)
Пример #2
0
 def test_mod_import_from_path(self):
     test_path = self._t_dir_file("test_eveditor.py")
     loaded_mod = utils.mod_import_from_path(test_path)
     self.assertIsNotNone(loaded_mod)