#NEWLINE# def when_BasicReturn_arrives_with_content( self ) : #NEWLINE# #INDENT# method = spec . BasicReturn ( 123 , 'you messed up' , 'the.exchange' , 'the.routing.key' ) #NEWLINE# self . server . send_frame ( frames . MethodFrame ( self . channel . id , method ) ) #NEWLINE# header = message . get_header_payload ( self . expected_message , spec . BasicGet . method_type [ 0 ] ) #NEWLINE# self . server . send_frame ( frames . ContentHeaderFrame ( self . channel . id , header ) ) #NEWLINE# body = message . get_frame_payloads ( self . expected_message , 100 ) [ 0 ] #NEWLINE# self . server . send_frame ( frames . ContentBodyFrame ( self . channel . id , body ) ) #NEWLINE# self . tick ( )