[pitivi] Add a check for undo() do() undo().



commit b5fc79f3ac6c163aab3765e3f1cc625368b30ce6
Author: Alessandro Decina <alessandro d gmail com>
Date:   Thu Jun 11 15:14:29 2009 +0200

    Add a check for undo() do() undo().

 tests/test_undo.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_undo.py b/tests/test_undo.py
index 30a9e40..8db84f8 100644
--- a/tests/test_undo.py
+++ b/tests/test_undo.py
@@ -391,3 +391,7 @@ class TestUndoableActionLog(TestCase):
         self.log.redo()
         self.failUnlessEqual(call_sequence, ["do1", "do2", "do3"])
 
+        call_sequence[:] = []
+        self.log.undo()
+        self.failUnlessEqual(call_sequence, ["undo3", "undo2", "undo1"])
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]