'L{policies.ProtocolWrapper.unregisterProducer} calls
C{unregisterProducer} on the underlying transport.'

def test_unregisterProducer(self):

    wrapper = self._getWrapper()
    producer = object()
    wrapper.registerProducer(producer, True)
    wrapper.unregisterProducer()
    self.assertIsNone(wrapper.transport.producer)
    self.assertIsNone(wrapper.transport.streaming)
