#NEWLINE# def test_worker_reads_final_hypothesis_from_asr( self ) : #NEWLINE# #INDENT# messages = [ { #NEWLINE# #INDENT# 'frontend' : self . make_frontend_request ( 'message 1' ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'frontend' : self . make_frontend_request ( 'message 2' ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . run_worker ( messages ) #NEWLINE# expected_message = createResultsMessage ( [ ( 0 , True , [ ( 1.0 , 'Hello World!' ) ] ) ] ) #NEWLINE# self . assertThatMessagesWereSendToFrontend ( [ expected_message , expected_message ] )