def run_unittest(testclass, debug=0):
 suite = unittest.makeSuite(testclass)
 if debug:
  suite.debug()
 else:
  run_suite(suite, testclass)

def run_unittest ( testclass , debug = 0 ) : suite = unittest . makeSuite ( testclass ) if debug : suite . debug ( ) else : run_suite ( suite , testclass )
run tests from a unittest .