'When the TLS transport is blocked on reads, it correctly calls
pauseProducing on the registered producer.'

def test_streamingProducerPausedInWriteBlockedOnReadMode(self):

    (clientProtocol, tlsProtocol, producer) = self.setupStreamingProducer()
    clientProtocol.transport.write('hello')
    self.assertEqual(producer.producerState, 'paused')
    self.assertEqual(producer.producerHistory, ['pause'])
    self.assertTrue(tlsProtocol._producer._producerPaused)
