def test_interfaces(self):
        """
        L{Factory} instances provide both L{IProtocolFactory} and
        L{ILoggingContext}.
        """
        factory = Factory()
        self.assertTrue(verifyObject(IProtocolFactory, factory))
        self.assertTrue(verifyObject(ILoggingContext, factory))

        L{Factory} instances provide both L{IProtocolFactory} and
        L{ILoggingContext}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_protocol.py