def test_HTTPChannelIsAProducer(self):
        """
        L{HTTPChannel} registers itself as a producer with its transport when a
        connection is made.
        """
        channel, transport = self.buildChannelAndTransport(
            StringTransport(), DummyHTTPHandler
        )

        self.assertEqual(transport.producer, channel)
        self.assertTrue(transport.streaming)

        L{HTTPChannel} registers itself as a producer with its transport when a
        connection is made.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py