2 # -*- coding: utf-8 -*-
8 suite = unittest.TestSuite()
9 for _, _, files in os.walk('.'):
10 for name in filter(is_test, files):
11 tests = unittest.defaultTestLoader.loadTestsFromName(name[:-3])
15 def is_test(filename):
16 return filename.startswith('test_') and filename.endswith('.py')
18 if __name__ == "__main__":
19 unittest.main(defaultTest="suite")