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...)
This commit is contained in:
Daniel DiPaolo 2004-09-05 17:30:10 +00:00
parent ebb7becd4f
commit a4b3d66748

View File

@ -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')