MCPcopy Index your code
hub / github.com/python/cpython / test_toprettyxml_with_cdata

Method test_toprettyxml_with_cdata

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

Source from the content-addressed store, hash-verified

1769 '<curriculum status="public" company="example"/>\n')
1770
1771 def test_toprettyxml_with_cdata(self):
1772 xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>'
1773 doc = parseString(xml_str)
1774 self.assertEqual(doc.toprettyxml(),
1775 '<?xml version="1.0" ?>\n'
1776 '<root>\n'
1777 '\t<node><![CDATA[</data>]]></node>\n'
1778 '</root>\n')
1779
1780 def test_cdata_parsing(self):
1781 xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>'

Callers

nothing calls this directly

Calls 3

parseStringFunction · 0.90
toprettyxmlMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected