mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
test/test_callbacks: Fix a test failure.
This commit is contained in:
parent
464c1e3cb9
commit
0880a07b72
@ -291,7 +291,7 @@ class ProperStringificationOfReplyArgs(PluginTestCase):
|
|||||||
self.assertResponse('expectsstring lower [nonstring int]', '1')
|
self.assertResponse('expectsstring lower [nonstring int]', '1')
|
||||||
|
|
||||||
class PrivmsgTestCase(ChannelPluginTestCase):
|
class PrivmsgTestCase(ChannelPluginTestCase):
|
||||||
plugins = ('Utilities', 'Misc', 'Web', 'Karma')
|
plugins = ('Utilities', 'Misc', 'Web', 'Karma', 'String')
|
||||||
conf.allowEval = True
|
conf.allowEval = True
|
||||||
timeout = 2
|
timeout = 2
|
||||||
def testEmptySquareBrackets(self):
|
def testEmptySquareBrackets(self):
|
||||||
@ -322,14 +322,14 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
|||||||
'\x01ACTION foo\x01')
|
'\x01ACTION foo\x01')
|
||||||
|
|
||||||
def testReplyWithNickPrefix(self):
|
def testReplyWithNickPrefix(self):
|
||||||
self.feedMsg('@strlen foo')
|
self.feedMsg('@len foo')
|
||||||
m = self.irc.takeMsg()
|
m = self.irc.takeMsg()
|
||||||
self.failUnless(m is not None, 'm: %r' % m)
|
self.failUnless(m is not None, 'm: %r' % m)
|
||||||
self.failUnless(m.args[1].startswith(self.nick))
|
self.failUnless(m.args[1].startswith(self.nick))
|
||||||
try:
|
try:
|
||||||
original = conf.supybot.reply.withNickPrefix()
|
original = conf.supybot.reply.withNickPrefix()
|
||||||
conf.supybot.reply.withNickPrefix.setValue(False)
|
conf.supybot.reply.withNickPrefix.setValue(False)
|
||||||
self.feedMsg('@strlen foobar')
|
self.feedMsg('@len foobar')
|
||||||
m = self.irc.takeMsg()
|
m = self.irc.takeMsg()
|
||||||
self.failUnless(m is not None)
|
self.failUnless(m is not None)
|
||||||
self.failIf(m.args[1].startswith(self.nick))
|
self.failIf(m.args[1].startswith(self.nick))
|
||||||
|
Loading…
Reference in New Issue
Block a user