def test_triple(self): old_count = ircbot.WORDCOUNT self.assertTrue(state.is_next(ircbot.f_word_count('foo bar baz'))) self.assertEqual(ircbot.WORDCOUNT, old_count + 3)
def test_single(self): old_count = ircbot.WORDCOUNT self.assertTrue(state.is_next(ircbot.f_word_count('foo'))) self.assertEqual(ircbot.WORDCOUNT, old_count + 1)