Fixed failing tests.

This commit is contained in:
Jeremy Fincher 2004-02-13 09:29:55 +00:00
parent 1a62fed0b6
commit c68a8015a0
2 changed files with 3 additions and 2 deletions

View File

@ -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.')

View File

@ -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')