

def test_end_recognition_sends_data_to_worker(self):
    expected_message.worker.connect_to_worker('en-GB')
    self.worker.end_recognition()
    expected_message = createRecognitionRequestMessage('ONLINE', b'', False, frame_rate=44100)
    self.assertThatMessagesWereSentToWorker([expected_message])

dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/api/test_lib.py TestFrontendWorker.test_end_recognition_sends_data_to_worker/VarMisuse@10/19 `self`->`expected_message`