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

Class SAX2DOMTestHelper

Lib/test/test_pulldom.py:286–293  ·  view source on GitHub ↗

Allows us to drive SAX2DOM from a DOMEventStream.

Source from the content-addressed store, hash-verified

284
285
286class SAX2DOMTestHelper(pulldom.DOMEventStream):
287 """Allows us to drive SAX2DOM from a DOMEventStream."""
288
289 def reset(self):
290 self.pulldom = pulldom.SAX2DOM()
291 # This content handler relies on namespace support
292 self.parser.setFeature(xml.sax.handler.feature_namespaces, 1)
293 self.parser.setContentHandler(self.pulldom)
294
295
296class SAX2DOMTestCase(unittest.TestCase):

Callers 3

test_sax2dom_failMethod · 0.85
test_thorough_sax2domMethod · 0.85
test_basicMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_sax2dom_failMethod · 0.68
test_thorough_sax2domMethod · 0.68
test_basicMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…