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

Method test_cdata

Lib/test/test_xml_etree.py:385–393  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 '<tag key="value"><subtag /><subtag /></tag>')
384
385 def test_cdata(self):
386 # Test CDATA handling (etc).
387
388 self.serialize_check(ET.XML("<tag>hello</tag>"),
389 '<tag>hello</tag>')
390 self.serialize_check(ET.XML("<tag>&#104;&#101;&#108;&#108;&#111;</tag>"),
391 '<tag>hello</tag>')
392 self.serialize_check(ET.XML("<tag><![CDATA[hello]]></tag>"),
393 '<tag>hello</tag>')
394
395 @unittest.expectedFailure # TODO: RUSTPYTHON
396 def test_file_init(self):

Callers

nothing calls this directly

Calls 1

serialize_checkMethod · 0.95

Tested by

no test coverage detected