def test_quiet(self):
        contextFactory = DefaultOpenSSLContextFactory(certPath, certPath)

        logs = []
        logger = logs.append
        log.addObserver(logger)
        self.addCleanup(log.removeObserver, logger)
        wrappedFactory = ServerFactory()
        # Disable logging on the wrapped factory:
        wrappedFactory.doStart = lambda: None
        wrappedFactory.doStop = lambda: None
        factory = TLSMemoryBIOFactory(contextFactory, False, wrappedFactory)
        factory.doStart()
        factory.doStop()
        self.assertEqual(logs, [])
Compute and return trophies for a review request.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/test/test_tls.py/TLSMemoryBIOFactoryTests.test_quiet--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/accounts/managers.py/TrophyManager.compute_trophies