'When L{HTTPChannel} has C{pauseProducing} called on it by the transport
it will call C{pauseProducing} on the transport. When unpaused, the
L{HTTPChannel} will call C{resumeProducing} on its transport.'

def test_HTTPChannelPropagatesProducingFromTransportToTransport(self):

    (channel, transport) = self.buildChannelAndTransport(StringTransport(), DummyHTTPHandler)
    self.assertEqual(transport.producerState, 'producing')
    channel.pauseProducing()
    self.assertEqual(transport.producerState, 'paused')
    channel.resumeProducing()
    self.assertEqual(transport.producerState, 'producing')
