mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 22:29:24 +01:00
fix previous commit
Thanks @ProgVal :)
This commit is contained in:
parent
44c579c4f9
commit
8ef5adbc77
@ -241,7 +241,7 @@ class FunctionsTestCase(SupyTestCase):
|
|||||||
prefix = 'foo!bar@baz'
|
prefix = 'foo!bar@baz'
|
||||||
channelMsg = ircmsgs.privmsg('#foo', 'bar baz', prefix=prefix)
|
channelMsg = ircmsgs.privmsg('#foo', 'bar baz', prefix=prefix)
|
||||||
nonChannelMsg = ircmsgs.privmsg('supybot', 'bar baz', prefix=prefix)
|
nonChannelMsg = ircmsgs.privmsg('supybot', 'bar baz', prefix=prefix)
|
||||||
self.assertEqual(ircmsgs.privmsg(nonChannelMsg.nick, 'foo'),
|
self.assertEqual(ircmsgs.notice(nonChannelMsg.nick, 'foo'),
|
||||||
callbacks.reply(channelMsg, 'foo', private=True))
|
callbacks.reply(channelMsg, 'foo', private=True))
|
||||||
self.assertEqual(ircmsgs.privmsg(nonChannelMsg.nick, 'foo'),
|
self.assertEqual(ircmsgs.privmsg(nonChannelMsg.nick, 'foo'),
|
||||||
callbacks.reply(nonChannelMsg, 'foo'))
|
callbacks.reply(nonChannelMsg, 'foo'))
|
||||||
@ -261,7 +261,7 @@ class FunctionsTestCase(SupyTestCase):
|
|||||||
self.assertEqual(callbacks.reply(msg, 'blah', to='blah'),
|
self.assertEqual(callbacks.reply(msg, 'blah', to='blah'),
|
||||||
ircmsgs.privmsg('#foo', 'blah: blah'))
|
ircmsgs.privmsg('#foo', 'blah: blah'))
|
||||||
self.assertEqual(callbacks.reply(msg, 'blah', to='blah', private=True),
|
self.assertEqual(callbacks.reply(msg, 'blah', to='blah', private=True),
|
||||||
ircmsgs.privmsg('blah', 'blah'))
|
ircmsgs.notice('blah', 'blah'))
|
||||||
|
|
||||||
def testTokenize(self):
|
def testTokenize(self):
|
||||||
self.assertEqual(callbacks.tokenize(''), [])
|
self.assertEqual(callbacks.tokenize(''), [])
|
||||||
|
Loading…
Reference in New Issue
Block a user