+
+ def test_single_prune()
+ # Run prune once and see what happens.
+ cfg = configuration()
+
+ output_buffer = StringIO.new()
+
+ $stdout = output_buffer
+ PrunePlugin.run(cfg)
+ $stdout = STDOUT
+
+ actual = output_buffer.string()
+
+ check_assertions(actual)
+ end
+
+
+ def test_double_prune
+ # Run prune twice. This should have the exact same output as
+ # running it once, since the second time around, there's nothing
+ # to prune.
+ cfg = configuration()
+
+ output_buffer = StringIO.new()
+
+ $stdout = output_buffer
+ PrunePlugin.run(cfg)
+ PrunePlugin.run(cfg)
+ $stdout = STDOUT
+
+ actual = output_buffer.string()
+
+ check_assertions(actual)
+ end
+