def setUp(self):
        master_response = createMasterResponseMessage("SUCCESS", self.background_worker_socket)
        worker_response = createResultsMessage([(0, True, [(1.0, "Hello World!")])])

        self.master_socket = SocketSpy()
        self.master_socket.set_messages([master_response.SerializeToString()] * 2)
        self.worker_socket = SocketSpy()
        self.worker_socket.set_messages([worker_response.SerializeToString()] * 2)
        self.decoder = DummyDecoder()
        self.id_generator = DummyIDGenerator()
        self.worker = FrontendWorker(self.master_socket, self.worker_socket, self.decoder, self.id_generator)
dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/api/test_lib.py/TestFrontendWorker.setUp/original