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

def test_streamingProducerResumedInWriteBlockedOnReadMode(self):

    (clientProtocol, tlsProtocol, producer) = self.setupStreamingProducer()
    clientProtocol.transport.write(('hello    world' * 320000))
    self.assertEqual(producer.producerHistory, ['pause'])
    (serverProtocol, serverTLSProtocol) = buildTLSProtocol(server=True)
    self.flushTwoTLSProtocols(tlsProtocol, serverTLSProtocol)
    self.assertEqual(producer.producerHistory, ['pause', 'resume'])
    self.assertFalse(tlsProtocol._producer._producerPaused)
    self.assertFalse(tlsProtocol.transport.disconnecting)
    self.assertEqual(producer.producerState, 'producing')
