#NEWLINE# def test_worker_change_lm_when_new_lm_is_set( self ) : #NEWLINE# #INDENT# messages = [ { #NEWLINE# #INDENT# 'frontend' : self . make_frontend_request ( '' , 'ONLINE' , new_lm = 'new_lm' ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . run_worker ( messages ) #NEWLINE# self . assertEquals ( 'new_lm' , self . asr . lm )