Esempio n. 1
0
 def test_person_does_not_exist(self):
     self.tbot = TestedBot()
     self.tbot.register(regex.directedsubstitute)
     self.tbot.listen("Afal", "#42", "Fluttershy: s/yay/woo hoo/")
     disappointing_result = (
         "#42",
         "Afal: Fluttershy doesn't exist! You don't have to correct them!")
     self.assertEqual(self.tbot.last_message(), disappointing_result)
Esempio n. 2
0
 def setUp(self):
     self.tbot = TestedBot()
     self.tbot.register(regex.storemessage)
     self.tbot.register(regex.substitute)
     self.tbot.register(regex.directedsubstitute)
Esempio n. 3
0
 def setUp(self):
     self.tbot = TestedBot()
     self.tbot.register(ping.thanks_ants)