mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Added test for the recent bug fixed in addressed.
This commit is contained in:
parent
31b1abaa59
commit
2682670fc6
@ -120,6 +120,8 @@ class FunctionsTestCase(unittest.TestCase):
|
|||||||
inChannel = [ircmsgs.privmsg('#foo', s) for s in inChannel]
|
inChannel = [ircmsgs.privmsg('#foo', s) for s in inChannel]
|
||||||
badmsg = ircmsgs.privmsg('#foo', '%s:foo' % nick)
|
badmsg = ircmsgs.privmsg('#foo', '%s:foo' % nick)
|
||||||
self.failIf(callbacks.addressed(nick, badmsg))
|
self.failIf(callbacks.addressed(nick, badmsg))
|
||||||
|
badmsg = ircmsgs.privmsg('#foo', '%s^: foo' % nick)
|
||||||
|
self.failIf(callbacks.addressed(nick, badmsg))
|
||||||
for msg in inChannel:
|
for msg in inChannel:
|
||||||
self.assertEqual('foo', callbacks.addressed(nick, msg), msg)
|
self.assertEqual('foo', callbacks.addressed(nick, msg), msg)
|
||||||
msg = ircmsgs.privmsg(nick, 'foo')
|
msg = ircmsgs.privmsg(nick, 'foo')
|
||||||
|
Loading…
Reference in New Issue
Block a user