'L{Request.unregisterProducer} unregisters a non-queued streaming
producer from the request and the request\'s transport.'

def test_unregisterNonQueuedStreamingProducer(self):

    req = http.Request(DummyChannel(), False)
    req.transport = StringTransport()
    req.registerProducer(DummyProducer(), True)
    req.unregisterProducer()
    self.assertEqual((None, None), (req.producer, req.transport.producer))
