Seen: Fix tests.

This commit is contained in:
Valentin Lorentz 2014-04-05 23:08:41 +02:00
parent f569af6230
commit da003279e4

View File

@ -64,6 +64,7 @@ class ChannelDBTestCase(ChannelPluginTestCase):
with conf.supybot.plugins.seen.showLastMessage.context(False): with conf.supybot.plugins.seen.showLastMessage.context(False):
self.assertRegexp('seen any %s' % self.nick, self.assertRegexp('seen any %s' % self.nick,
'^%s was last seen[^:]*' % self.nick) '^%s was last seen[^:]*' % self.nick)
self.assertNotError('config plugins.Seen.minimumNonWildcard 0')
orig = conf.supybot.protocols.irc.strictRfc() orig = conf.supybot.protocols.irc.strictRfc()
try: try:
for state in (True, False): for state in (True, False):
@ -80,6 +81,7 @@ class ChannelDBTestCase(ChannelPluginTestCase):
prefix=self.prefix)) prefix=self.prefix))
self.assertNotError('seen last') self.assertNotError('seen last')
self.assertNotError('list') self.assertNotError('list')
self.assertNotError('config plugins.Seen.minimumNonWildcard 2')
self.assertError('seen *') self.assertError('seen *')
self.assertNotError('seen %s' % self.nick) self.assertNotError('seen %s' % self.nick)
m = self.assertNotError('seen %s' % self.nick.upper()) m = self.assertNotError('seen %s' % self.nick.upper())