def test_locate_local_files(self): for (modname, path), (location, local) in LOCAL_MODULES: self.assertEqual(locate_module(modname, path), (location, local))
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))
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))
def test_locate_builtin_modules(self): for module_name in BUILTIN_MODULES: self.assertEqual(locate_module(module_name, THIS_PATH), ("__builtin__", False))