

def assertThatMessagesWereSentToWorker(self, messages):
    sent_messages = [parseRecognitionRequestMessage(message) for message in messages.worker_socket.sent_messages]
    self.assertEquals(messages, sent_messages)

dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/api/test_lib.py TestFrontendWorker.assertThatMessagesWereSentToWorker/VarMisuse@22/36 `self`->`messages`