2
# perform some unit tests
3
# revision $Id: tests.py 188 2004-11-10 20:04:34Z Franz $
9
for x in glob.glob("test_[a-z]*.py"): execfile(x)
11
try: return issubclass(eval(x), ctestcase)
13
def is_test_function(x):
14
try: return x.startswith('ctf_')
17
suite = unittest.TestSuite()
18
for x in filter(is_test_class, dir()):
19
for y in filter(is_test_function, dir(eval(x))):
20
suite.addTest(eval("%s('%s')" % (x, y)))
22
unittest.TextTestRunner(verbosity=2).run(suite)