Fix for failures induced by the testing switch to un-firewalled (I think).

This commit is contained in:
Jeremy Fincher 2004-08-26 04:53:30 +00:00
parent f2fd7c9e66
commit 6381e2aef8
1 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,15 @@ from testsupport import *
class RootWarnerTestCase(PluginTestCase):
plugins = ('RootWarner',)
def setUp(self):
PluginTestCase.setUp(self)
self.original = conf.supybot.reply.whenNotCommand()
conf.supybot.reply.whenNotCommand.setValue(False)
def tearDown(self):
PluginTestCase.tearDown(self)
conf.supybot.reply.whenNotCommand.setValue(self.original)
def test(self):
self.irc.feedMsg(ircmsgs.join('#foo', prefix='foo!root@host'))
self.assertNotError(' ')