def testMultipleQueuedMessages(self):
        self.rdm.addMessage(self.theMessage)
        self.rdm.addMessage(self.theMessage.encode('hex'))
        self.rdm.addOutput(mappend(self.transport))
        self.assertEquals(self.transport, [[(0, self.theMessage), (1, self.theMessage.encode('hex'))]])
Write all messages to the stream in a thread-safe way.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/Transport.testMultipleQueuedMessages--crossover with--dataset/ETHPy150Open django/django/django/core/mail/backends/console.py/EmailBackend.send_messages