Exemple #1
0
 def test_locate_local_files(self):
     for (modname, path), (location, local) in LOCAL_MODULES:
         self.assertEqual(locate_module(modname, path), (location, local))
Exemple #2
0
 def test_locate_builtin_modules_that_start_with_underscore(self):
     for module_name in BUILTIN_MODULES_WITH_UNDERSCORES:
         self.assertEqual(locate_module(module_name, THIS_PATH), ("__builtin__", False))
Exemple #3
0
 def test_locate_3rd_party_modules_returns_filename(self):
     for modname, filename in THIRD_PARTY_MODULES:
         self.assertEqual(locate_module(modname, THIS_PATH), (filename, False))
Exemple #4
0
 def test_locate_builtin_modules(self):
     for module_name in BUILTIN_MODULES:
         self.assertEqual(locate_module(module_name, THIS_PATH), ("__builtin__", False))