mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Seen: Fix tests.
This commit is contained in:
parent
f569af6230
commit
da003279e4
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user