'When the L{NonStreamingProducer} is paused, it raises a
L{RuntimeError}.'

def test_cannotPauseProduction(self):

    consumer = TestConsumer()
    producer = NonStreamingProducer(consumer)
    consumer.registerProducer(producer, False)
    producer.resumeProducing()
    self.assertRaises(RuntimeError, producer.pauseProducing)
