@@ -230,7 +230,7 @@ class DoCommandTest(CommandTest):
...
@@ -230,7 +230,7 @@ class DoCommandTest(CommandTest):
self.error)
self.error)
command.execute()
command.execute()
self.assertTrue(self.todolist.is_dirty())
self.assertTrue(self.todolist.dirty)
self.assertEqual(self.output,"Completed: x 2014-11-18 Baz p:1\n")
self.assertEqual(self.output,"Completed: x 2014-11-18 Baz p:1\n")
self.assertEqual(self.errors,"")
self.assertEqual(self.errors,"")
...
@@ -239,7 +239,7 @@ class DoCommandTest(CommandTest):
...
@@ -239,7 +239,7 @@ class DoCommandTest(CommandTest):
self.error,_yes_prompt)
self.error,_yes_prompt)
command.execute()
command.execute()
self.assertTrue(self.todolist.is_dirty())
self.assertTrue(self.todolist.dirty)
self.assertEqual(self.output,"| 2| Bar p:1\n| 3| Baz p:1\nCompleted: x 2014-11-18 Bar p:1\nCompleted: x 2014-11-18 Baz p:1\nCompleted: x 2014-11-18 Foo id:1\n")
self.assertEqual(self.output,"| 2| Bar p:1\n| 3| Baz p:1\nCompleted: x 2014-11-18 Bar p:1\nCompleted: x 2014-11-18 Baz p:1\nCompleted: x 2014-11-18 Foo id:1\n")
self.assertEqual(self.errors,"")
self.assertEqual(self.errors,"")
...
@@ -248,7 +248,7 @@ class DoCommandTest(CommandTest):
...
@@ -248,7 +248,7 @@ class DoCommandTest(CommandTest):
self.out,self.error)
self.out,self.error)
command.execute()
command.execute()
self.assertTrue(self.todolist.is_dirty())
self.assertTrue(self.todolist.dirty)
self.assertEqual(self.output,"Completed: x 2014-11-18 Baz p:1\n")
self.assertEqual(self.output,"Completed: x 2014-11-18 Baz p:1\n")
self.assertEqual(self.errors,"")
self.assertEqual(self.errors,"")
...
@@ -257,7 +257,7 @@ class DoCommandTest(CommandTest):
...
@@ -257,7 +257,7 @@ class DoCommandTest(CommandTest):
self.error)
self.error)
command.execute()
command.execute()
self.assertTrue(self.todolist.is_dirty())
self.assertTrue(self.todolist.dirty)
self.assertEqual(self.output,
self.assertEqual(self.output,
"Completed: x {} Baz p:1\n".format(self.today))
"Completed: x {} Baz p:1\n".format(self.today))
self.assertEqual(self.errors,"")
self.assertEqual(self.errors,"")
...
@@ -271,7 +271,7 @@ class DoCommandTest(CommandTest):
...
@@ -271,7 +271,7 @@ class DoCommandTest(CommandTest):
self.out,self.error)
self.out,self.error)
command.execute()
command.execute()
self.assertTrue(self.todolist.is_dirty())
self.assertTrue(self.todolist.dirty)
self.assertEqual(self.output,"| 12| {today} Recurring! rec:1d due:{today}\nCompleted: x {yesterday} Recurring! rec:1d\n".format(today=self.today,yesterday=self.yesterday))
self.assertEqual(self.output,"| 12| {today} Recurring! rec:1d due:{today}\nCompleted: x {yesterday} Recurring! rec:1d\n".format(today=self.today,yesterday=self.yesterday))
self.assertEqual(self.errors,"")
self.assertEqual(self.errors,"")
...
@@ -285,7 +285,7 @@ class DoCommandTest(CommandTest):
...
@@ -285,7 +285,7 @@ class DoCommandTest(CommandTest):
self.out,self.error)
self.out,self.error)
command.execute()
command.execute()
self.assertTrue(self.todolist.is_dirty())
self.assertTrue(self.todolist.dirty)
self.assertEqual(self.output,"| 12| {today} Recurring! rec:1d due:{today}\nCompleted: x {yesterday} Recurring! rec:1d\n".format(today=self.today,yesterday=self.yesterday))
self.assertEqual(self.output,"| 12| {today} Recurring! rec:1d due:{today}\nCompleted: x {yesterday} Recurring! rec:1d\n".format(today=self.today,yesterday=self.yesterday))
self.assertEqual(self.errors,"")
self.assertEqual(self.errors,"")
...
@@ -298,7 +298,7 @@ class DoCommandTest(CommandTest):
...
@@ -298,7 +298,7 @@ class DoCommandTest(CommandTest):