#NEWLINE# def test_does_not_expose_underlying_validation_error( self ) : #NEWLINE# #INDENT# validator = Sha256RSADigestValidator ( ) #NEWLINE# try : #NEWLINE# #INDENT# validator . validate ( 'b' , 'k' , VALID_TEST_KEY , e . _digest_data , 'invalid' . encode ( ) ) #NEWLINE# self . fail ( 'Should have failed' ) #NEWLINE# #UNINDENT# except DigestSignatureError as e : #NEWLINE# #INDENT# self . assertEqual ( 'Digest file\ts3://b/k\tINVALID: signature verification failed' , str ( e ) )