def pyUnitTests():
 s = unittest.TestSuite()
 for (filename, test_num, expected, case) in getCases():
  s.addTest(_TestCase(filename, str(test_num), expected, case))
 return s

def pyUnitTests ( ) : s = unittest . TestSuite ( ) for ( filename , test_num , expected , case ) in getCases ( ) : s . addTest ( _TestCase ( filename , str ( test_num ) , expected , case ) ) return s
make a pyunit testsuite from a file defining test cases .