def get_tests_for(python_name):
 def _extract_ids(t):
  if isinstance(t, TestSuite):
   result = pset()
   for sub_tests in t:
    result = (result | _extract_ids(sub_tests))
   return result
  else:
   return pset([t.id()])
 loader = TestLoader()
 tests = loader.loadByName(python_name, recurse=True)
 return _extract_ids(tests)

def get_tests_for ( python_name ) : def _extract_ids ( t ) : if isinstance ( t , TestSuite ) : result = pset ( ) for sub_tests in t : result = ( result | _extract_ids ( sub_tests ) ) return result else : return pset ( [ t . id ( ) ] ) loader = TestLoader ( ) tests = loader . loadByName ( python_name , recurse = True ) return _extract_ids ( tests )
find all tests for the given python_name .