#NEWLINE# def test_stopProducing( self ) : #NEWLINE# #INDENT# "\n        L{TransportProxyProducer.stopProducing} calls the wrapped transport's\n        C{stopProducing} method unless told to stop proxying.\n        " #NEWLINE# transport = StringTransport ( ) #NEWLINE# proxy = TransportProxyProducer ( transport ) #NEWLINE# self . assertEqual ( transport . producerState , 'producing' ) #NEWLINE# proxy . stopProducing ( ) #NEWLINE# self . assertEqual ( transport . producerState , 'stopped' ) #NEWLINE# transport = StringTransport ( ) #NEWLINE# proxy = TransportProxyProducer ( transport ) #NEWLINE# proxy . _stopProxying ( ) #NEWLINE# proxy . stopProducing ( ) #NEWLINE# self . assertEqual ( transport . producerState , 'producing' )