Added a test to make sure I don't make that stupid mistake (not including "msg"

in irc.error) in the same place again.
This commit is contained in:
Daniel DiPaolo 2003-10-29 17:39:07 +00:00
parent 3b0276e688
commit bef71df2ee

View File

@ -62,6 +62,10 @@ if sqlite is not None:
self.assertNotError('todo add moo')
self.assertRegexp('todo tester', 'Todos for tester: '
'#1: wash my car and #2: moo')
# Check error
self.assertError('todo asfas')
self.assertResponse('todo asfas', 'Error: \'asfas\' is not a '
'valid task id or username')
def testAddtodo(self):
self.assertNotError('todo add code a new plugin')