#NEWLINE# def find_all_tests( root_suite ) : #NEWLINE# #INDENT# 'Yields all the tests and their names from a given suite.' #NEWLINE# suites = [ root_suite ] #NEWLINE# while suites : #NEWLINE# #INDENT# tsuite = suites . pop ( ) #NEWLINE# try : #NEWLINE# #INDENT# suites . extend ( tsuite ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# ( yield ( tsuite , '{}.{}.{}' . format ( tsuite . __class__ . __module__ , tsuite . __class__ . __name__ , tsuite . _testMethodName ) . lower ( ) ) )