From bef71df2ee72c066b2052746cb84d5595ad9f177 Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Wed, 29 Oct 2003 17:39:07 +0000 Subject: [PATCH] Added a test to make sure I don't make that stupid mistake (not including "msg" in irc.error) in the same place again. --- test/test_Todo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_Todo.py b/test/test_Todo.py index ae09aabe1..cce10fdc5 100644 --- a/test/test_Todo.py +++ b/test/test_Todo.py @@ -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')