def t_KEGG_Map(testfiles):
 for file in testfiles:
  fh = open(os.path.join('KEGG', file))
  print((('Testing Bio.KEGG.Map on ' + file) + '\n\n'))
  reactions = Map.parse(fh)
  system = System()
  for reaction in reactions:
   system.add_reaction(reaction)
  rxs = system.reactions()
  rxs.sort(key=(lambda x: str(x)))
  for x in rxs:
   print(str(x))
  fh.close()

def t_KEGG_Map ( testfiles ) : for file in testfiles : fh = open ( os . path . join ( 'KEGG' , file ) ) print ( ( ( 'Testing Bio.KEGG.Map on ' + file ) + '\n\n' ) ) reactions = Map . parse ( fh ) system = System ( ) for reaction in reactions : system . add_reaction ( reaction ) rxs = system . reactions ( ) rxs . sort ( key = ( lambda x : str ( x ) ) ) for x in rxs : print ( str ( x ) ) fh . close ( )
tests bio .