def t_cleaning_features():
 gb_parser = GenBank.FeatureParser(feature_cleaner=utils.FeatureValueCleaner())
 handle = open(os.path.join('GenBank', 'arab1.gb'))
 iterator = GenBank.Iterator(handle, gb_parser)
 first_record = next(iterator)
 translation_feature = first_record.features[1]
 test_trans = translation_feature.qualifiers['translation'][0]
 assert (' ' not in test_trans), 'Did not clean spaces out of the translation'
 assert ('\n' not in test_trans), 'Did not clean newlines out of the translation'
 handle.close()

def t_cleaning_features ( ) : gb_parser = GenBank . FeatureParser ( feature_cleaner = utils . FeatureValueCleaner ( ) ) handle = open ( os . path . join ( 'GenBank' , 'arab1.gb' ) ) iterator = GenBank . Iterator ( handle , gb_parser ) first_record = next ( iterator ) translation_feature = first_record . features [ 1 ] test_trans = translation_feature . qualifiers [ 'translation' ] [ 0 ] assert ( ' ' not in test_trans ) , 'Did not clean spaces out of the translation' assert ( '\n' not in test_trans ) , 'Did not clean newlines out of the translation' handle . close ( )
test the ability to clean up feature values .