MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_cdata_parsing

Method test_cdata_parsing

Lib/test/test_minidom.py:1805–1810  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1803 '</root>\n')
1804
1805 def test_cdata_parsing(self):
1806 xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>'
1807 dom1 = parseString(xml_str)
1808 self.checkWholeText(dom1.getElementsByTagName('node')[0].firstChild, '</data>')
1809 dom2 = parseString(dom1.toprettyxml())
1810 self.checkWholeText(dom2.getElementsByTagName('node')[0].firstChild, '</data>')
1811
1812if __name__ == "__main__":
1813 unittest.main()

Callers

nothing calls this directly

Calls 4

checkWholeTextMethod · 0.95
parseStringFunction · 0.90
toprettyxmlMethod · 0.80
getElementsByTagNameMethod · 0.45

Tested by

no test coverage detected