def test_sync(self): user = FakeUser("bob", self.bot, self) user.ask("!test_sync some random message", "some random message") user.ask(":test_sync 42", "Your number is 42") user.ask("!test_sync 1 + 1 == 2", "OK") user.ask(":test_sync 1 + 1 == 3", "KO")
def test_help(self): user = FakeUser("bob", self.bot, self) user.ask("!help", u'I can execute: \n-test_sync') user.ask("!help test_sync", "A simple module to test")