Added test for active/inactive in Todo.todo.

This commit is contained in:
Jeremy Fincher 2003-12-08 13:16:51 +00:00
parent 7d7e396bac
commit d59b3022fc
1 changed files with 11 additions and 0 deletions

View File

@ -113,5 +113,16 @@ if sqlite is not None:
self.assertNotError('todo change 1 s/moo/foo/')
self.assertRegexp('todo 1', 'Todo for tester: foo \(Added .*?\)')
def testActiveInactiveTodo(self):
self.assertNotError('todo add foo')
self.assertNotError('todo add bar')
self.assertRegexp('todo 1', 'Active')
self.assertRegexp('todo 2', 'Active')
self.assertNotError('todo remove 1')
self.assertRegexp('todo 1', 'Inactive')
self.assertRegexp('todo 2', 'Active')
self.assertNotError('todo remove 2')
self.assertRegexp('todo 2', 'Inactive')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: