def process_tests(suite, process):
 if ((not hasattr(suite, u'_tests')) or (hasattr(suite, u'hasFixtures') and suite.hasFixtures())):
  process(suite)
 else:
  for t in suite._tests:
   process_tests(t, process)

def process_tests ( suite , process ) : if ( ( not hasattr ( suite , u'_tests' ) ) or ( hasattr ( suite , u'hasFixtures' ) and suite . hasFixtures ( ) ) ) : process ( suite ) else : for t in suite . _tests : process_tests ( t , process )
given a nested disaster of [lazy]suites .