'L{Response.deliverBody} resumes the HTTP connection\'s transport
after passing it to the consumer\'s C{makeConnection} method.'

def test_transportResumed(self):

    transportState = []
    class ListConsumer(Protocol, ):
        def makeConnection(self, transport):
            transportState.append(transport.producerState)
    transport = StringTransport()
    transport.pauseProducing()
    protocol = ListConsumer()
    response = justTransportResponse(transport)
    self.assertEqual(transport.producerState, u'paused')
    response.deliverBody(protocol)
    self.assertEqual(transportState, [u'paused'])
    self.assertEqual(transport.producerState, u'producing')
