Until we can safely load Karma, this test is staying commented out.

This commit is contained in:
Jeremy Fincher 2009-11-25 09:17:52 -06:00
parent 52e96bff61
commit 89a535e8c1

View File

@ -290,18 +290,18 @@ class ProperStringificationOfReplyArgs(PluginTestCase):
self.irc.addCallback(self.ExpectsString(self.irc))
self.assertResponse('expectsstring lower [nonstring int]', '1')
class PrivmsgTestCaseWithKarma(ChannelPluginTestCase):
plugins = ('Utilities', 'Misc', 'Web', 'Karma', 'String')
conf.allowEval = True
timeout = 2
def testSecondInvalidCommandRespondsWithThreadedInvalidCommands(self):
try:
orig = conf.supybot.plugins.Karma.response()
conf.supybot.plugins.Karma.response.setValue(True)
self.assertNotRegexp('echo [foo++] [foo++]', 'not a valid')
_ = self.irc.takeMsg()
finally:
conf.supybot.plugins.Karma.response.setValue(orig)
## class PrivmsgTestCaseWithKarma(ChannelPluginTestCase):
## plugins = ('Utilities', 'Misc', 'Web', 'Karma', 'String')
## conf.allowEval = True
## timeout = 2
## def testSecondInvalidCommandRespondsWithThreadedInvalidCommands(self):
## try:
## orig = conf.supybot.plugins.Karma.response()
## conf.supybot.plugins.Karma.response.setValue(True)
## self.assertNotRegexp('echo [foo++] [foo++]', 'not a valid')
## _ = self.irc.takeMsg()
## finally:
## conf.supybot.plugins.Karma.response.setValue(orig)
class PrivmsgTestCase(ChannelPluginTestCase):