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

        contextFactory = DefaultOpenSSLContextFactory(certPath, certPath)
        factory = TLSMemoryBIOFactory(contextFactory, False, NoFactory())
        self.assertEqual("NoFactory (TLS)", factory.logPrefix())
If the wrapped factory does not provide L{ILoggingContext},
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/test/test_tls.py/TLSMemoryBIOFactoryTests.test_logPrefixFallback