예제 #1
0
	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)
예제 #2
0
	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)