def compare_records(old_list, new_list, truncate_qual=None):
 if (len(old_list) != len(new_list)):
  raise ValueError(('%i vs %i records' % (len(old_list), len(new_list))))
 for (old, new) in zip(old_list, new_list):
  if (not compare_record(old, new, truncate_qual)):
   return False
 return True

def compare_records ( old_list , new_list , truncate_qual = None ) : if ( len ( old_list ) != len ( new_list ) ) : raise ValueError ( ( '%i vs %i records' % ( len ( old_list ) , len ( new_list ) ) ) ) for ( old , new ) in zip ( old_list , new_list ) : if ( not compare_record ( old , new , truncate_qual ) ) : return False return True
check two lists of seqrecords agree .