def test_factory(self):
        """
        The C{factory} attribute is taken from the inner channel.
        """
        a = http._genericHTTPChannelProtocolFactory(b'')
        a._channel.factory = b"Foo"
        self.assertEqual(a.factory, b"Foo")

        The C{factory} attribute is taken from the inner channel.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py