#NEWLINE# def assert_hashes_for_signable( self , info , hashes_to_check ) : #NEWLINE# #INDENT# ' check that various hashes look right. ' #NEWLINE# assert ( 'Hash' in info ) #NEWLINE# hashes = self . get_dict_with_key ( info [ 'Hash' ] , '_' ) #NEWLINE# assert ( hashes is not None ) #NEWLINE# for i in hashes_to_check : #NEWLINE# #INDENT# key = str ( i ) #NEWLINE# assert ( key in hashes ) #NEWLINE# assert ( int ( hashes [ info ] , 16 ) != 0 )