#NEWLINE# def it_should_send_a_BasicPublish_method_followed_by_a_header_and_the_body( self ) : #NEWLINE# #INDENT# expected_method = spec . BasicPublish ( 0 , self . exchange . name , 'routing.key' , True , False ) #NEWLINE# header_payload = message . ContentHeaderPayload ( 60 , 4 , [ 'application/json' , 'utf-8' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , 2 , 5 , self . correlation_id , 'me' , 'tomorrow' , self . message_id , self . timestamp , 'telegram' , 'benjamin' , 'asynqptests' ] ) #NEWLINE# expected_header = frames . ContentHeaderFrame ( self . channel . id , header_payload ) #NEWLINE# expected_body = frames . ContentBodyFrame ( self . channel . id , b'body' ) #NEWLINE# self . server . should_have_received_frames ( [ frames . MethodFrame ( self . channel . id , expected_method ) , expected_header , expected_body ] , any_order = False )