Commit 38b18f78 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Fix dirty property lookup

parent e8061b08
...@@ -125,7 +125,7 @@ class DepCommandTest(CommandTest): ...@@ -125,7 +125,7 @@ class DepCommandTest(CommandTest):
command = DepCommand(p_args, self.todolist, self.out, self.error) command = DepCommand(p_args, self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertTrue(self.todolist.is_dirty()) self.assertTrue(self.todolist.dirty)
self.assertTrue(self.todolist.todo(4).has_tag('p', '1')) self.assertTrue(self.todolist.todo(4).has_tag('p', '1'))
self.assertEqual(self.output, "") self.assertEqual(self.output, "")
self.assertEqual(self.errors, "") self.assertEqual(self.errors, "")
...@@ -147,7 +147,7 @@ class DepCommandTest(CommandTest): ...@@ -147,7 +147,7 @@ class DepCommandTest(CommandTest):
self.out, self.error) self.out, self.error)
command.execute() command.execute()
self.assertFalse(self.todolist.is_dirty()) self.assertFalse(self.todolist.dirty)
self.assertEqual(self.output, "") self.assertEqual(self.output, "")
self.assertEqual(self.errors, "") self.assertEqual(self.errors, "")
...@@ -155,7 +155,7 @@ class DepCommandTest(CommandTest): ...@@ -155,7 +155,7 @@ class DepCommandTest(CommandTest):
command = DepCommand(p_args, self.todolist, self.out, self.error) command = DepCommand(p_args, self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertTrue(self.todolist.is_dirty()) self.assertTrue(self.todolist.dirty)
self.assertTrue(self.todolist.todo(2).has_tag('p', '2')) self.assertTrue(self.todolist.todo(2).has_tag('p', '2'))
self.assertTrue(self.todolist.todo(3).has_tag('p', '2')) self.assertTrue(self.todolist.todo(3).has_tag('p', '2'))
self.assertEqual(self.output, "") self.assertEqual(self.output, "")
...@@ -178,7 +178,7 @@ class DepCommandTest(CommandTest): ...@@ -178,7 +178,7 @@ class DepCommandTest(CommandTest):
self.out, self.error) self.out, self.error)
command.execute() command.execute()
self.assertFalse(self.todolist.is_dirty()) self.assertFalse(self.todolist.dirty)
self.assertEqual(self.output, "") self.assertEqual(self.output, "")
self.assertEqual(self.errors, "") self.assertEqual(self.errors, "")
......
...@@ -83,7 +83,7 @@ class TagCommandTest(CommandTest): ...@@ -83,7 +83,7 @@ class TagCommandTest(CommandTest):
command.execute() command.execute()
self.assertEqual(self.errors, "") self.assertEqual(self.errors, "")
self.assertTrue(self.todolist.is_dirty()) self.assertTrue(self.todolist.dirty)
self.assertEqual(self.todolist.todo(1).source(), "Foo k:a k:b k:c") self.assertEqual(self.todolist.todo(1).source(), "Foo k:a k:b k:c")
def test_set_tag04(self): def test_set_tag04(self):
......
...@@ -420,7 +420,7 @@ class TodoListDependencyTester(TopydoTest): ...@@ -420,7 +420,7 @@ class TodoListDependencyTester(TopydoTest):
todo = self.todolist.todo(4) todo = self.todolist.todo(4)
self.todolist.delete(todo, p_leave_tags=False) self.todolist.delete(todo, p_leave_tags=False)
self.assertTrue(self.todolist.is_dirty()) self.assertTrue(self.todolist.dirty)
self.assertEqual(self.todolist.todo(3).source(), "Baz p:1") self.assertEqual(self.todolist.todo(3).source(), "Baz p:1")
def test_delete02(self): def test_delete02(self):
...@@ -428,7 +428,7 @@ class TodoListDependencyTester(TopydoTest): ...@@ -428,7 +428,7 @@ class TodoListDependencyTester(TopydoTest):
todo = self.todolist.todo(4) todo = self.todolist.todo(4)
self.todolist.delete(todo, p_leave_tags=True) self.todolist.delete(todo, p_leave_tags=True)
self.assertTrue(self.todolist.is_dirty()) self.assertTrue(self.todolist.dirty)
self.assertEqual(self.todolist.todo(3).source(), "Baz p:1 id:2") self.assertEqual(self.todolist.todo(3).source(), "Baz p:1 id:2")
def test_delete03(self): def test_delete03(self):
...@@ -436,7 +436,7 @@ class TodoListDependencyTester(TopydoTest): ...@@ -436,7 +436,7 @@ class TodoListDependencyTester(TopydoTest):
todo = self.todolist.todo(3) todo = self.todolist.todo(3)
self.todolist.delete(todo, p_leave_tags=True) self.todolist.delete(todo, p_leave_tags=True)
self.assertTrue(self.todolist.is_dirty()) self.assertTrue(self.todolist.dirty)
self.assertEqual(self.todolist.todo(3).source(), "Buzz p:2") self.assertEqual(self.todolist.todo(3).source(), "Buzz p:2")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment