#NEWLINE# @ patch ( 'pyon.net.endpoint.BaseEndpoint._get_container_instance' ) #NEWLINE# def test__build_header_no_context( self , mockgci ) : #NEWLINE# #INDENT# ep = ProcessEndpointUnitMixin ( process = Mock ( ) ) #NEWLINE# header = ep . _build_header ( sentinel . raw_msg , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIn ( 'sender-name' , header ) #NEWLINE# self . assertIn ( 'sender' , header ) #NEWLINE# self . assertIn ( 'sender-type' , header ) #NEWLINE# self . assertNotIn ( 'sender-service' , header ) #NEWLINE# self . assertIn ( 'origin-container-id' , header ) #NEWLINE# self . assertEquals ( header [ 'sender-name' ] , ep . _process . name ) #NEWLINE# self . assertEquals ( header [ 'sender' ] , ep . _process . id ) #NEWLINE# self . assertEquals ( header [ 'sender-type' ] , ep . _process . process_type ) #NEWLINE# self . assertEquals ( header [ 'origin-container-id' ] , mockgci ( ) . id )