#NEWLINE# def test_generic_build( self ) : #NEWLINE# #INDENT# 'GenericBuilder construction of the BlastDB' #NEWLINE# sp_hbb1 = testutil . datafile ( 'sp_hbb1' ) #NEWLINE# gb = GenericBuilder ( 'BlastDB' , sp_hbb1 ) #NEWLINE# s = pickle . dumps ( gb ) #NEWLINE# db = pickle . loads ( s ) #NEWLINE# self . EQ ( len ( db ) , 24 ) #NEWLINE# found = [ x for x in db ] #NEWLINE# found . sort ( ) #NEWLINE# expected = [ 'HBB0_PAGBO' , 'HBB1_ANAMI' , 'HBB1_CYGMA' , 'HBB1_IGUIG' , 'HBB1_MOUSE' , 'HBB1_ONCMY' , 'HBB1_PAGBO' , 'HBB1_RAT' , 'HBB1_SPHPU' , 'HBB1_TAPTE' , 'HBB1_TORMA' , 'HBB1_TRICR' , 'HBB1_UROHA' , 'HBB1_VAREX' , 'HBB1_XENBO' , 'HBB1_XENLA' , 'HBB1_XENTR' , 'MYG_DIDMA' , 'MYG_ELEMA' , 'MYG_ERIEU' , 'MYG_ESCGI' , 'MYG_GALCR' , 'PRCA_ANASP' , 'PRCA_ANAVA' ] #NEWLINE# expected . sort ( ) #NEWLINE# self . EQ ( expected , found )