def test_unregisterNonQueuedStreamingProducer(self):
        """
        L{Request.unregisterProducer} unregisters a non-queued streaming
        producer from the request and the request's transport.
        """
        req = http.Request(DummyChannel(), False)
        req.transport = StringTransport()
        req.registerProducer(DummyProducer(), True)
        req.unregisterProducer()
        self.assertEqual((None, None), (req.producer, req.transport.producer))

        L{Request.unregisterProducer} unregisters a non-queued streaming
        producer from the request and the request's transport.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py