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

Method test_expat_external_dtd_default

Lib/test/test_sax.py:1005–1015  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1003 )
1004
1005 def test_expat_external_dtd_default(self):
1006 parser = create_parser()
1007 resolver = self.TestEntityRecorder()
1008 parser.setEntityResolver(resolver)
1009
1010 parser.feed(
1011 '<!DOCTYPE external SYSTEM "unsupported://non-existing">\n'
1012 )
1013 parser.feed('<doc />')
1014 parser.close()
1015 self.assertEqual(resolver.entities, [])
1016
1017 # ===== EntityResolver support
1018

Callers

nothing calls this directly

Calls 5

create_parserFunction · 0.90
setEntityResolverMethod · 0.80
feedMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected