mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Made the tests for callbacks.addressed more extensive.
This commit is contained in:
parent
4e4855094c
commit
07ef648e1c
@ -140,6 +140,12 @@ class FunctionsTestCase(unittest.TestCase):
|
||||
msg = ircmsgs.privmsg(nick, 'foo')
|
||||
self.assertEqual('foo', callbacks.addressed(nick, msg))
|
||||
conf.prefixChars = oldprefixchars
|
||||
msg = ircmsgs.privmsg('#foo', '%s::::: bar' % nick)
|
||||
self.assertEqual('bar', callbacks.addressed(nick, msg))
|
||||
msg = ircmsgs.privmsg('#foo', '%s: foo' % nick.upper())
|
||||
self.assertEqual('foo', callbacks.addressed(nick, msg))
|
||||
badmsg = ircmsgs.privmsg('#foo', '%s`: foo' % nick)
|
||||
self.failIf(callbacks.addressed(nick, badmsg))
|
||||
|
||||
def testReply(self):
|
||||
prefix = 'foo!bar@baz'
|
||||
|
Loading…
Reference in New Issue
Block a user