コード例 #1
0
ファイル: test.py プロジェクト: Drekorian/PV248_Python
 def test_next_filter(self):
     ircbot.FILTERS = [self.h_next, self.h_count]
     self.assertEquals("5", ircbot.parse("pocet"))
コード例 #2
0
ファイル: test.py プロジェクト: Drekorian/PV248_Python
 def test_replace_filter(self):
     ircbot.FILTERS = [self.h_replace, self.h_count]
     self.assertEquals("7", ircbot.parse("pocet"))
コード例 #3
0
ファイル: test.py プロジェクト: Drekorian/PV248_Python
 def test_nothing(self):
     self.assertEquals(None, ircbot.parse("nothing test"))
コード例 #4
0
ファイル: test.py プロジェクト: Drekorian/PV248_Python
 def test_command(self):
     ircbot.FILTERS = []
     self.assertEquals("echo bot", ircbot.parse("echo bot"))
コード例 #5
0
ファイル: test.py プロジェクト: Drekorian/PV248_Python
 def test_unknown(self):
     self.assertEquals("unknown test", ircbot.parse("unknown test"))
コード例 #6
0
ファイル: test.py プロジェクト: Drekorian/PV248_Python
 def test_echo(self):
     self.assertEquals("echo bot", ircbot.parse("echo bot"))
コード例 #7
0
ファイル: test_custom.py プロジェクト: Drekorian/PV248_Python
	def test_no_command_no_filter(self):
		self.assertEqual(ircbot.parse("foo"), "foo")
コード例 #8
0
ファイル: test_custom.py プロジェクト: Drekorian/PV248_Python
	def test_f_replace_secret_with_hashes(self):
		self.assertEqual(ircbot.parse("the secret is secret"), "the ###### is ######")
		self.assertEqual(ircbot.parse("foo bar"), "foo bar")
コード例 #9
0
ファイル: test_custom.py プロジェクト: Drekorian/PV248_Python
	def test_cmd_say_hello(self):
		self.assertEqual(ircbot.parse("hello"), "hello to you too")