示例#1
0
class CommandFixture(unittest.TestCase):
    def setUp(self):
        self.commands = BotCommands()

    def test(self):
        result = self.commands.interpret("!hello")
        self.assertIsNotNone(result)
        self.assertEqual(result.key, "hello")
示例#2
0
class CommandFixture(unittest.TestCase):

    def setUp(self):
        self.commands = BotCommands()

    def test(self):
        result = self.commands.interpret("!hello")
        self.assertIsNotNone(result)
        self.assertEqual(result.key, "hello")
示例#3
0
 def setUp(self):
     self.commands = BotCommands()
示例#4
0
 def setUp(self):
     self.commands = BotCommands()