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

Method test_bug_xmltoolkit54

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

Source from the content-addressed store, hash-verified

2303 b'<tag \xc3\xa4ttr="v\xc3\xa4lue" />')
2304
2305 def test_bug_xmltoolkit54(self):
2306 # problems handling internally defined entities
2307
2308 e = ET.XML("<!DOCTYPE doc [<!ENTITY ldots '&#x8230;'>]>"
2309 '<doc>&ldots;</doc>')
2310 self.assertEqual(serialize(e, encoding="us-ascii"),
2311 b'<doc>&#33328;</doc>')
2312 self.assertEqual(serialize(e), '<doc>\u8230</doc>')
2313
2314 def test_bug_xmltoolkit55(self):
2315 # make sure we're reporting the first error, not the last

Callers

nothing calls this directly

Calls 2

serializeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected