Exemple #1
0
 def test_modulefinder(self):
     mf = ModuleFinder(path=sys.path)
     mf.import_hook("nested.test_tools")
     found = mf.modules.keys()
     try:
         self.assertEqual(set(found), self.modules)
         self.assertEqual(mf.missing(), self.missing)
     except AssertionError:
         mf.report()
         raise