def reorder_suite(suite, classes):
 class_count = len(classes)
 bins = [unittest.TestSuite() for i in range((class_count + 1))]
 partition_suite(suite, classes, bins)
 for i in range(class_count):
  bins[0].addTests(bins[(i + 1)])
 return bins[0]

def reorder_suite ( suite , classes ) : class_count = len ( classes ) bins = [ unittest . TestSuite ( ) for i in range ( ( class_count + 1 ) ) ] partition_suite ( suite , classes , bins ) for i in range ( class_count ) : bins [ 0 ] . addTests ( bins [ ( i + 1 ) ] ) return bins [ 0 ]
reorders a test suite by test type .