

def test_change_lm_sends_data_to_worker(self):
    self.worker.connect_to_worker('en-GB')
    self.worker.change_lm('new_lm')
    expected_message = createRecognitionRequestMessage('ONLINE', b'', True, frame_rate=44100, new_lm='new_lm')
    self.assertThatMessagesWereSentToWorker([expected_message])

dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/api/test_lib.py TestFrontendWorker.test_change_lm_sends_data_to_worker/original