import test_factor as t for name in sorted(dir(t)): if name.startswith('test_'): getattr(t, name)() print('PASS', name) print('ALL PASS')