#NEWLINE# def test_pickle( self ) : #NEWLINE# #INDENT# msg = Message ( ( 'some body' * 200000 ) , content_type = 'text/plain' , content_encoding = 'utf-8' , application_headers = { #NEWLINE# #INDENT# 'foo' : 7 , #NEWLINE# 'bar' : 'baz' , #NEWLINE# 'd2' : { #NEWLINE# #INDENT# 'foo2' : 'xxx' , #NEWLINE# 'foo3' : ( - 1 ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , delivery_mode = 1 , priority = 7 ) #NEWLINE# msg2 = pickle . loads ( pickle . dumps ( msg , ( - 1 ) ) ) #NEWLINE# assert ( msg == msg )