#NEWLINE# def test__message_received( self ) : #NEWLINE# #INDENT# self . _endpoint_unit . message_received = Mock ( ) #NEWLINE# self . _endpoint_unit . message_received . return_value = sentinel . msg_return #NEWLINE# retval = self . _endpoint_unit . _message_received ( sentinel . msg , sentinel . headers ) #NEWLINE# self . assertEquals ( retval , sentinel . msg_return ) #NEWLINE# self . assertTrue ( self . _endpoint_unit . message_received . called )