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

Method test_bug_xmltoolkit62

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

Source from the content-addressed store, hash-verified

2290
2291 @unittest.expectedFailure # TODO: RUSTPYTHON
2292 def test_bug_xmltoolkit62(self):
2293 # Don't crash when using custom entities.
2294
2295 ENTITIES = {'rsquo': '\u2019', 'lsquo': '\u2018'}
2296 parser = ET.XMLParser()
2297 parser.entity.update(ENTITIES)
2298 parser.feed("""<?xml version="1.0" encoding="UTF-8"?>
2299<!DOCTYPE patent-application-publication SYSTEM "pap-v15-2001-01-31.dtd" []>
2300<patent-application-publication>
2301<subdoc-abstract>
2302<paragraph id="A-0001" lvl="0">A new cultivar of Begonia plant named &lsquo;BCT9801BEG&rsquo;.</paragraph>
2303</subdoc-abstract>
2304</patent-application-publication>""")
2305 t = parser.close()
2306 self.assertEqual(t.find('.//paragraph').text,
2307 'A new cultivar of Begonia plant named \u2018BCT9801BEG\u2019.')
2308
2309 @unittest.skipIf(sys.gettrace(), "Skips under coverage.")
2310 def test_bug_xmltoolkit63(self):

Callers

nothing calls this directly

Calls 5

feedMethod · 0.95
closeMethod · 0.95
updateMethod · 0.45
assertEqualMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected