From c68a8015a0d6040340c8a467918b499870f891de Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 13 Feb 2004 09:29:55 +0000 Subject: [PATCH] Fixed failing tests. --- plugins/WordStats.py | 1 + test/test_WordStats.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/WordStats.py b/plugins/WordStats.py index 8b038504d..f6f830bed 100644 --- a/plugins/WordStats.py +++ b/plugins/WordStats.py @@ -279,6 +279,7 @@ class WordStats(callbacks.Privmsg): try: L = ['%r: %s' % (word, count) for (word,count) in self.db.getUserWordCounts(channel,id)] + L.sort() irc.reply(utils.commaAndify(L)) except KeyError: irc.reply('I have no word stats for that person.') diff --git a/test/test_WordStats.py b/test/test_WordStats.py index a5c2485c4..5650227bf 100644 --- a/test/test_WordStats.py +++ b/test/test_WordStats.py @@ -55,8 +55,8 @@ if sqlite is not None: self.assertResponse('wordstats', 'I am not currently keeping any ' 'word stats.') self.assertNotError('add lol') - self.assertResponse('wordstats', 'Currently keeping stats for: ' - '\'lol\'') + self.assertResponse('wordstats', + 'I am currently keeping stats for lol.') def testWordStatsUser(self): self.assertNotError('add lol')