def test_logPrefixFallback(self):
        class NoFactory(object):
            pass

        contextFactory = DefaultOpenSSLContextFactory(certPath, certPath)
        factory = TLSMemoryBIOFactory(contextFactory, False, NoFactory())
        self.assertEqual("NoFactory (TLS)", factory.logPrefix())
Prepares a list of messages for storage.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/test/test_tls.py/TLSMemoryBIOFactoryTests.test_logPrefixFallback--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/messages/storage/base.py/BaseStorage._prepare_messages