Attempt to fix an error in testing permban, but it doesn't want to let itself

be fixed.
This commit is contained in:
James Vega 2004-08-26 14:29:50 +00:00
parent 36d9b07b41
commit 73686aeb50

View File

@ -144,7 +144,14 @@ class ChannelTestCase(ChannelPluginTestCase, PluginDocumentation):
def testPermban(self): def testPermban(self):
self.assertNotError('permban foo!bar@baz') self.assertNotError('permban foo!bar@baz')
self.assertNotError('unpermban foo!bar@baz') self.assertNotError('unpermban foo!bar@baz')
self.assertError('permban not!a.hostmask') orig = conf.supybot.protocols.irc.strictRfc()
try:
conf.supybot.protocols.irc.strictRfc.setValue(True)
# something wonky is going on here. irc.error (src/Channel.py|449)
# is being called but the assert is failing
self.assertError('permban not!a.hostmask')
finally:
conf.supybot.protocols.irc.strictRfc.setValue(orig)
def testIgnore(self): def testIgnore(self):
self.assertNotError('Channel ignore foo!bar@baz') self.assertNotError('Channel ignore foo!bar@baz')