def test_changeElement_new(self): io = StringIO(XMLUtil.data1) _ignore_etree, root = readXML(io) changeSubElementText(root, "new", "new text") self._checkXML(root, XMLUtil.data6)
def test_changeElement_existing(self): io = StringIO(XMLUtil.data1) _ignore_etree, root = readXML(io) changeSubElementText(root, "help", "changed text") self._checkXML(root, XMLUtil.data5)