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

Method test_bug_xmltoolkit54

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

Source from the content-addressed store, hash-verified

2261 b'<tag \xc3\xa4ttr="v\xc3\xa4lue" />')
2262
2263 def test_bug_xmltoolkit54(self):
2264 # problems handling internally defined entities
2265
2266 e = ET.XML("<!DOCTYPE doc [<!ENTITY ldots '&#x8230;'>]>"
2267 '<doc>&ldots;</doc>')
2268 self.assertEqual(serialize(e, encoding="us-ascii"),
2269 b'<doc>&#33328;</doc>')
2270 self.assertEqual(serialize(e), '<doc>\u8230</doc>')
2271
2272 @unittest.expectedFailure # TODO: RUSTPYTHON
2273 def test_bug_xmltoolkit55(self):

Callers

nothing calls this directly

Calls 2

serializeFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected