if __name__ == '__main__':
    testsuite = unittest.TestLoader().discover('.')
unittest.TextTestRunner(verbosity=1).run(testsuite)
Python: How to run unittest.main() for all source files in a subdirectory?