def test_text_reply_node(self): root = TemplateNode() self.assertIsNotNone(root) self.assertIsNotNone(root.children) self.assertEqual(len(root.children), 0) reply = TemplateReplyNode() reply._text = TemplateWordNode("SAY HELLO") root.append(reply) resolved = root.resolve(self._client_context) self.assertIsNotNone(resolved) self.assertEquals("<reply><text>SAY HELLO</text></reply>", resolved) self.assertEquals("<reply><text>SAY HELLO</text></reply>", root.to_xml(self._client_context))