mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 21:52:37 +01:00
Fixed final syntax error, added test.
This commit is contained in:
parent
67d262a575
commit
9a43f04248
@ -309,7 +309,7 @@ class ChannelStats(callbacks.Plugin):
|
||||
str(e).split()[1], Raise=True)
|
||||
except Exception, e:
|
||||
irc.error(utils.exnToString(e), Raise=True)
|
||||
finally:
|
||||
else:
|
||||
users.append((v, ircdb.users.getUser(id).name))
|
||||
users.sort()
|
||||
users.reverse()
|
||||
|
@ -75,6 +75,17 @@ class ChannelStatsTestCase(ChannelPluginTestCase):
|
||||
def testNoKeyErrorStats(self):
|
||||
self.assertNotRegexp('stats sweede', 'KeyError')
|
||||
|
||||
def testRank(self):
|
||||
self.assertError('channelstats stats %s' % self.irc.nick)
|
||||
self.assertNotError('channelstats stats %s' % self.irc.nick)
|
||||
self.assertNotError('channelstats stats %s' % self.irc.nick)
|
||||
self.assertNotError('channelstats stats %s' % self.irc.nick.upper())
|
||||
self.assertNotError('channelstats stats %s' % self.nick)
|
||||
self.assertNotError('channelstats stats %s' % self.nick.upper())
|
||||
self.assertNotError('channelstats stats')
|
||||
|
||||
self.assertNotError('channelstats rank chars / msgs')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user