mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Attempt to fix an error in testing permban, but it doesn't want to let itself
be fixed.
This commit is contained in:
parent
36d9b07b41
commit
73686aeb50
@ -144,7 +144,14 @@ class ChannelTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
def testPermban(self):
|
||||
self.assertNotError('permban 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):
|
||||
self.assertNotError('Channel ignore foo!bar@baz')
|
||||
|
Loading…
Reference in New Issue
Block a user