#NEWLINE# def test_transportResumed( self ) : #NEWLINE# #INDENT# "\n        L{Response.deliverBody} resumes the HTTP connection's transport\n        before passing it to the consumer's C{makeConnection} method.\n        " #NEWLINE# transportState = [ ] #NEWLINE# class ListConsumer ( Protocol ) : #NEWLINE# #INDENT# def makeConnection( self , transport ) : #NEWLINE# #INDENT# transportState . append ( transport . producerState ) #NEWLINE# #UNINDENT# #UNINDENT# transport = StringTransport ( ) #NEWLINE# transport . pauseProducing ( ) #NEWLINE# protocol = ListConsumer ( ) #NEWLINE# response = justTransportResponse ( response ) #NEWLINE# self . assertEqual ( transport . producerState , 'paused' ) #NEWLINE# response . deliverBody ( protocol ) #NEWLINE# self . assertEqual ( transportState , [ 'producing' ] )