mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Fix test failures.
This commit is contained in:
parent
27a233e98f
commit
b8da3624b3
@ -137,15 +137,18 @@ class WordStatsTestCase(ChannelPluginTestCase):
|
|||||||
self.assertRegexp('wordstats lolz0r', r'1 \'lolz0r\' seen')
|
self.assertRegexp('wordstats lolz0r', r'1 \'lolz0r\' seen')
|
||||||
|
|
||||||
def testRemoveword(self):
|
def testRemoveword(self):
|
||||||
self.assertError('wordstats remove foo')
|
# Using a word that's also the name of a user isn't smart since that
|
||||||
self.assertNotError('wordstats add foo')
|
# exercises different behavior
|
||||||
self.assertRegexp('wordstats foo', r'1 \'foo\' seen')
|
#self.assertError('wordstats remove foo')
|
||||||
self.assertRegexp('wordstats foo', r'2 \'foo\'s seen')
|
self.assertError('wordstats remove blarg')
|
||||||
self.assertNotError('wordstats remove foo')
|
self.assertNotError('wordstats add blarg')
|
||||||
self.assertRegexp('wordstats foo', r'doesn\'t look like a word I')
|
self.assertRegexp('wordstats blarg', r'1 \'blarg\' seen')
|
||||||
|
self.assertRegexp('wordstats blarg', r'2 \'blarg\'s seen')
|
||||||
|
self.assertNotError('wordstats remove blarg')
|
||||||
|
self.assertRegexp('wordstats blarg', r'doesn\'t look like a word I')
|
||||||
# Verify that we aren't keeping results from before
|
# Verify that we aren't keeping results from before
|
||||||
self.assertNotError('add foo')
|
self.assertNotError('add blarg')
|
||||||
self.assertRegexp('wordstats foo', r'1 \'foo\' seen')
|
self.assertRegexp('wordstats blarg', r'1 \'blarg\' seen')
|
||||||
|
|
||||||
def testWordStatsRankingDisplay(self):
|
def testWordStatsRankingDisplay(self):
|
||||||
self.assertNotError('add lol')
|
self.assertNotError('add lol')
|
||||||
|
Loading…
Reference in New Issue
Block a user