

def test_recognize_batch_reads_response_from_worker(self):
    self.id_generator.set_id([1])
    expected_response = [{
        'result': [{
            'alternative': [{
                'confidence': 1.0,
                'transcript': 'Hello World!',
            }],
            'final': True,
        }],
        'result_index': 0,
        'chunk_id': '0',
        'request_id': '1',
    }]
    received_response = list(received_response.worker.recognize_batch(self.request_data, self.request_headers))
    self.assertEquals(expected_response, received_response)

dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/api/test_lib.py TestFrontendWorker.test_recognize_batch_reads_response_from_worker/VarMisuse@81/126 `self`->`received_response`