#NEWLINE# def test_kms_sigv4_error_message( self ) : #NEWLINE# #INDENT# parsed = { #NEWLINE# #INDENT# 'Error' : { #NEWLINE# #INDENT# 'Message' : 'Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4.' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# s3errormsg . enhance_error_msg ( parsed ) #NEWLINE# self . assertIn ( 'You can enable AWS Signature Version 4' , parsed [ 'Error' ] [ 'Message' ] ) #NEWLINE# self . assertIn ( 'aws configure set s3.signature_version s3v4' , parsed [ 'Error' ] [ 'Message' ] )