Commit e8e03f5f authored by Bram Schoenmakers's avatar Bram Schoenmakers

Make sure that adding an empty string is a noop.

parent 7a95b281
......@@ -34,6 +34,11 @@ class TodoListTester(unittest.TestCase):
self.assertEquals(set(['Context1', 'Context2', 'Context3']), \
self.todolist.contexts())
def test_add2(self):
text = str(self.todolist)
self.todolist.add('')
self.assertEquals(str(self.todolist), text)
def test_delete1(self):
count = self.todolist.count()
self.todolist.delete(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