'L{StringTransport.pauseProducing} raises L{RuntimeError} if the
transport is being disconnected.'

def test_disconnectingTransportCannotPause(self):

    self.transport.loseConnection()
    self.assertRaises(RuntimeError, self.transport.pauseProducing)
