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

Method testParseFromTextFile

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

Source from the content-addressed store, hash-verified

71 self.assertIsInstance(dom, Document)
72
73 def testParseFromTextFile(self):
74 with open(tstfile, 'r', encoding='iso-8859-1') as file:
75 dom = parse(file)
76 dom.unlink()
77 self.assertIsInstance(dom, Document)
78
79 def testAttrModeSetsParamsAsAttrs(self):
80 attr = Attr("qName", "namespaceURI", "localName", "prefix")

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