mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Added a test for isnick always rejecting spaces in nick.
This commit is contained in:
parent
e5d3d39bed
commit
59d084abef
@ -189,6 +189,18 @@ class FunctionsTestCase(SupyTestCase):
|
||||
finally:
|
||||
conf.supybot.protocols.irc.strictRfc.setValue(original)
|
||||
|
||||
def testIsNickNeverAllowsSpaces(self):
|
||||
try:
|
||||
original = conf.supybot.protocols.irc.strictRfc()
|
||||
conf.supybot.protocols.irc.strictRfc.setValue(True)
|
||||
self.failIf(ircutils.isNick('foo bar'))
|
||||
conf.supybot.protocols.irc.strictRfc.setValue(False)
|
||||
self.failIf(ircutils.isNick('foo bar'))
|
||||
finally:
|
||||
conf.supybot.protocols.irc.strictRfc.setValue(original)
|
||||
|
||||
|
||||
|
||||
def testBanmask(self):
|
||||
for msg in msgs:
|
||||
if ircutils.isUserHostmask(msg.prefix):
|
||||
|
Loading…
Reference in New Issue
Block a user