def create_test_suites(test_target=None):
 if (test_target and ('/' in test_target)):
  raise Exception('The delimiter in test_target should be a dot (.)')
 loader = unittest.TestLoader()
 return ([loader.loadTestsFromName(test_target)] if test_target else [loader.discover(CURR_DIR, pattern='*_test.py', top_level_dir=CURR_DIR)])

def create_test_suites ( test_target = None ) : if ( test_target and ( '/' in test_target ) ) : raise Exception ( 'The delimiter in test_target should be a dot (.)' ) loader = unittest . TestLoader ( ) return ( [ loader . loadTestsFromName ( test_target ) ] if test_target else [ loader . discover ( CURR_DIR , pattern = '*_test.py' , top_level_dir = CURR_DIR ) ] )
creates test suites .