#NEWLINE# def test_open_fails_on_manipulation( self , hmacstore , key , value ) : #NEWLINE# #INDENT# hmacstore . put ( key , value ) #NEWLINE# hmacstore . d [ key ] += b ( 'a' ) #NEWLINE# with pytest . raises ( VerificationException ) : #NEWLINE# #INDENT# hmacstore . open ( key ) . read ( ) #NEWLINE# #UNINDENT# handle = hmacstore . open ( key ) #NEWLINE# handle . read ( ( len ( value ) + 1 ) ) #NEWLINE# with pytest . raises ( VerificationException ) : #NEWLINE# #INDENT# handle . read ( 1 )