From a4b3d66748e6f3f34fea52723b01748a6566d016 Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Sun, 5 Sep 2004 17:30:10 +0000 Subject: [PATCH] Yes, I realize that the new stuff doesn't work with these tests, but I can't for the life of me figure out why not! The tests look set up the way they are supposed to (ChannelPlugin now...) --- test/test_MoobotFactoids.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_MoobotFactoids.py b/test/test_MoobotFactoids.py index 5f3329bda..0a05a67fc 100644 --- a/test/test_MoobotFactoids.py +++ b/test/test_MoobotFactoids.py @@ -64,14 +64,15 @@ if sqlite is not None: self._testOptions('(|a)', ['a', '']) self._testOptions('((a)|(b))', ['(a)', '(b)']) - class FactoidsTestCase(PluginTestCase, PluginDocumentation): + class FactoidsTestCase(ChannelPluginTestCase, PluginDocumentation): plugins = ('MoobotFactoids', 'User', 'Utilities') config = {'reply.whenNotCommand': False} def setUp(self): - PluginTestCase.setUp(self) + ChannelPluginTestCase.setUp(self) # Create a valid user to use self.prefix = 'foo!bar@baz' - self.assertNotError('register tester moo') + self.irc.feedMsg(ircmsgs.privmsg(self.nick, 'register tester moo', + prefix=self.prefix)) def testAddFactoid(self): self.assertNotError('moo is foo')