Ejemplo n.º 1
0
    def test_get_node_class_by_name_missing(self):
        graph = TemplateGraph(self._client_context.brain.aiml_parser)

        with self.assertRaises(ParserException):
            _ = graph.get_node_class_by_name("other")
Ejemplo n.º 2
0
    def test_get_node_class_by_name(self):
        graph = TemplateGraph(self._client_context.brain.aiml_parser)

        node = graph.get_node_class_by_name("base")
        self.assertIsNotNone(node)