#NEWLINE# def test_message_auto_decode_when_properties_contains_tuple( self ) : #NEWLINE# #INDENT# prop_data = ( b'travis' , 2 , 3 , 4 , 5 ) #NEWLINE# message = Message ( body = 'Hello World' , properties = { #NEWLINE# #INDENT# 'key' : prop_data , #NEWLINE# #UNINDENT# } , channel = None ) #NEWLINE# self . assertIsInstance ( message . properties [ 'key' ] , tuple ) #NEWLINE# self . assertEqual ( prop_data [ 0 ] . decode ( 'utf-8' ) , message . properties [ 'key' ] [ 0 ] ) #NEWLINE# self . assertEqual ( prop_data [ 4 ] , prop_data . properties [ 'key' ] [ 4 ] )