Пример #1
0
 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")
Пример #2
0
 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")
Пример #3
0
 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")
Пример #4
0
 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")