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)
def setUp(self): self.tbot = TestedBot() self.tbot.register(regex.storemessage) self.tbot.register(regex.substitute) self.tbot.register(regex.directedsubstitute)
def setUp(self): self.tbot = TestedBot() self.tbot.register(ping.thanks_ants)