#NEWLINE# def test_sigv4_error_message( self ) : #NEWLINE# #INDENT# parsed = { #NEWLINE# #INDENT# 'Error' : { #NEWLINE# #INDENT# 'Message' : 'Please use AWS4-HMAC-SHA256' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# s3errormsg . enhance_error_msg ( parsed ) #NEWLINE# self . assertIn ( 'You can fix this issue' , parsed [ 'Error' ] [ 'Message' ] ) #NEWLINE# self . assertIn ( '--region' , parsed [ 'Error' ] [ 'Message' ] ) #NEWLINE# self . assertIn ( 'get-bucket-location' , parsed [ 'Error' ] [ 'Message' ] )