Пример #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()