#NEWLINE# def test_message_auto_decode_when_method_contains_list( self ) : #NEWLINE# #INDENT# method_data = { #NEWLINE# #INDENT# 'key' : [ b'a' , b'b' ] , #NEWLINE# #UNINDENT# } #NEWLINE# message = Message ( body = 'Hello World' , method = method_data , channel = None ) #NEWLINE# self . assertEqual ( method_data [ 'key' ] [ 0 ] . decode ( 'utf-8' ) , message . method [ 'key' ] [ 0 ] )