#NEWLINE# def test_send_message_hl7_message( self ) : #NEWLINE# #INDENT# self . client . socket . recv . return_value = 'thanks' #NEWLINE# message = hl7 . parse ( 'MSH|^~\\&|GHH LAB|ELAB' ) #NEWLINE# result = self . client . send_message ( message ) #NEWLINE# self . assertEqual ( result , 'thanks' ) #NEWLINE# self . client . socket . send . assert_called_once_with ( b'\x0bMSH|^~\\&|GHH LAB|ELAB\x1c\r' )