From ad78a341a5bc4dedf39599333af18fb4838b84c1 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 25 Sep 2003 07:38:59 +0000 Subject: [PATCH] Fixed bug in the test. --- test/test_Notes.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/test_Notes.py b/test/test_Notes.py index b78c869e6..e05b16791 100644 --- a/test/test_Notes.py +++ b/test/test_Notes.py @@ -32,14 +32,21 @@ from test import * import utils +import ircdb -class NotesTestCase(PluginTestCase): - plugins = ('Notes', 'MiscCommands') +class NotesTestCase(PluginTestCase, PluginDocumentation): + plugins = ('Notes', 'MiscCommands', 'UserCommands') def testHelps(self): self.assertNotError('help sendnote') self.assertNotError('list Notes') def testSendnote(self): + #print repr(ircdb.users.getUser(self.prefix)) + self.prefix = 'foo!bar@baz' + self.assertNotError('register foo bar') + (id, u) = ircdb.users.newUser() + u.name = 'inkedmn' + ircdb.users.setUser(id, u) self.assertNotError('sendnote inkedmn test') self.assertError('sendnote alsdkjfasldk foo')