コード例 #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
ファイル: test_commands.py プロジェクト: johncosta/ttpbot
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
ファイル: test_commands.py プロジェクト: johncosta/ttpbot
 def setUp(self):
     self.commands = BotCommands()
コード例 #4
0
 def setUp(self):
     self.commands = BotCommands()