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

Method testParseFromBinaryFile

Lib/test/test_minidom.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.assertFalse(Document.async_)
66
67 def testParseFromBinaryFile(self):
68 with open(tstfile, 'rb') as file:
69 dom = parse(file)
70 dom.unlink()
71 self.assertIsInstance(dom, Document)
72
73 def testParseFromTextFile(self):
74 with open(tstfile, 'r', encoding='iso-8859-1') as file:

Callers

nothing calls this directly

Calls 4

parseFunction · 0.90
assertIsInstanceMethod · 0.80
openFunction · 0.50
unlinkMethod · 0.45

Tested by

no test coverage detected