mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +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]
|
||||
badmsg = ircmsgs.privmsg('#foo', '%s:foo' % nick)
|
||||
self.failIf(callbacks.addressed(nick, badmsg))
|
||||
badmsg = ircmsgs.privmsg('#foo', '%s^: foo' % nick)
|
||||
self.failIf(callbacks.addressed(nick, badmsg))
|
||||
for msg in inChannel:
|
||||
self.assertEqual('foo', callbacks.addressed(nick, msg), msg)
|
||||
msg = ircmsgs.privmsg(nick, 'foo')
|
||||
|
Loading…
Reference in New Issue
Block a user