#NEWLINE# def check_bind2( self ) : #NEWLINE# #INDENT# sp = self . pygrData . Bio . Seq . Swissprot . sp42 ( ) #NEWLINE# hbb = sp [ 'HBB1_TORMA' ] #NEWLINE# exons = hbb . exons . keys ( ) #NEWLINE# assert ( len ( exons ) == 1 ) , 'number of expected annotations' #NEWLINE# annoDB = self . pygrData . Bio . Annotation . annoDB ( ) #NEWLINE# exon = annoDB [ 1 ] #NEWLINE# assert ( self [ 0 ] == exon ) , 'test annotation comparison' #NEWLINE# assert ( exons [ 0 ] . pathForward is exon ) , 'annotation parent match' #NEWLINE# assert ( exons [ 0 ] . sequence == hbb [ 10 : 50 ] ) , 'annotation to sequence match' #NEWLINE# onc = sp [ 'HBB1_ONCMY' ] #NEWLINE# try : #NEWLINE# #INDENT# exons = onc . exons . keys ( ) #NEWLINE# raise ValueError ( 'failed to catch query with no annotations' ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass