Tests for karma/infobot interaction.

This commit is contained in:
Jeremy Fincher 2004-08-27 15:44:15 +00:00
parent 5e00bd4251
commit 1ad9816391
2 changed files with 7 additions and 1 deletions

View File

@ -43,7 +43,7 @@ if sqlite is not None:
ibot = conf.supybot.plugins.Infobot
class InfobotTestCase(ChannelPluginTestCase):
plugins = ('Infobot',)
plugins = ('Infobot', 'Karma')
_endRe = re.compile(r'!|, \S+\.|\.')
def testIsSnarf(self):
learn = ibot.snarfUnaddressedDefinitions()
@ -136,4 +136,7 @@ if sqlite is not None:
ibot.answerUnaddressedQuestions.setValue(answer)
ibot.snarfUnaddressedDefinitions.setValue(learn)
def testNoKarmaDunno(self):
self.assertNoResponse('foo++')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -186,6 +186,9 @@ if sqlite is not None:
self.assertRegexp('karma foo', '0')
self.assertNotRegexp('karma foo', '1')
def testNoKarmaDunno(self):
self.assertNotError('load Infobot')
self.assertNoResponse('foo++')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: