def tests_from_manifest(testdir_from_ns):
 for (ns, testdir) in testdir_from_ns.items():
  for testmod in testmods_from_testdir(testdir):
   if hasattr(testmod, 'test_suite_class'):
    testsuite_class = testmod.test_suite_class
    if (not issubclass(testsuite_class, unittest.TestSuite)):
     testmod_path = testmod.__file__
     if testmod_path.endswith('.pyc'):
      testmod_path = testmod_path[:(-1)]
     log.warn("'test_suite_class' of '%s' module is not a subclass of 'unittest.TestSuite': ignoring", testmod_path)
   else:
    testsuite_class = None
   for testcase in testcases_from_testmod(testmod):
    try:
     (yield Test(ns, testmod, testcase, testcase._testMethodName, testsuite_class))
    except AttributeError:
     (yield Test(ns, testmod, testcase, testcase._TestCase__testMethodName, testsuite_class))

def tests_from_manifest ( testdir_from_ns ) : for ( ns , testdir ) in testdir_from_ns . items ( ) : for testmod in testmods_from_testdir ( testdir ) : if hasattr ( testmod , 'test_suite_class' ) : testsuite_class = testmod . test_suite_class if ( not issubclass ( testsuite_class , unittest . TestSuite ) ) : testmod_path = testmod . __file__ if testmod_path . endswith ( '.pyc' ) : testmod_path = testmod_path [ : ( - 1 ) ] log . warn ( "'test_suite_class' of '%s' module is not a subclass of 'unittest.TestSuite': ignoring" , testmod_path ) else : testsuite_class = None for testcase in testcases_from_testmod ( testmod ) : try : ( yield Test ( ns , testmod , testcase , testcase . _testMethodName , testsuite_class ) ) except AttributeError : ( yield Test ( ns , testmod , testcase , testcase . _TestCase__testMethodName , testsuite_class ) )
return a list of testlib .