Test command undo tracking.
(self)
| 63 | self.assertFalse(cmd.is_undone()) |
| 64 | |
| 65 | def test_command_undo(self): |
| 66 | """Test command undo tracking.""" |
| 67 | cmd = MockCommand() |
| 68 | cmd.execute() |
| 69 | cmd._mark_executed() |
| 70 | self.assertTrue(cmd.undo()) |
| 71 | cmd._mark_undone() |
| 72 | self.assertFalse(cmd.is_executed()) |
| 73 | self.assertTrue(cmd.is_undone()) |
| 74 | |
| 75 | def test_memory_usage_estimation(self): |
| 76 | """Test memory usage estimation.""" |
nothing calls this directly
no test coverage detected