Example #1
0
 def test_console_client_init(self):
     arguments = MockArgumentParser()
     client = ConsoleBotClient(arguments)
     self.assertIsNotNone(client)
     self.assertIsNotNone(client.arguments)
     self.assertEqual(client.id, "Console")
     self.assertEqual('ProgramY AIML2.0 Console Client', client.get_description())
Example #2
0
 def test_console_client_init(self):
     arguments = MockArgumentParser()
     client = ConsoleBotClient(arguments)
     self.assertIsNotNone(client)
     self.assertIsNotNone(client.arguments)
     self.assertEqual(client.id, "Console")
     self.assertEqual('ProgramY AIML2.0 Client', client.get_description())
Example #3
0
    def test_console_client_init(self):
        arguments = MockArgumentParser()
        client = ConsoleBotClient(arguments)
        self.assertIsNotNone(client)
        self.assertIsNotNone(client.arguments)
        self.assertEqual(client.id, "Console")
        self.assertEqual('ProgramY AIML2.0 Client', client.get_description())

        self.assertTrue(client._render_callback())
        self.assertIsInstance(client.renderer, TextRenderer)