def test_startedListeningLogMessage(self):
        loggedMessages = self.observe()
        reactor = self.buildReactor()
        class SomeFactory(ServerFactory):
            implements(ILoggingContext)
            def logPrefix(self):
                return "Crazy Factory"
        factory = SomeFactory()
        p = self.getListeningPort(reactor, factory)
        expectedMessage = self.getExpectedStartListeningLogMessage(
            p, "Crazy Factory")
        self.assertEqual((expectedMessage,), loggedMessages[0]['message'])
Helper function for when a single plot axis is needed.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_tcp.py/StreamTransportTestsMixin.test_startedListeningLogMessage--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/graphics/utils.py/create_mpl_ax