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

Method test_bug_xmltoolkit25

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

Source from the content-addressed store, hash-verified

2255 check(elem) # attribute value
2256
2257 def test_bug_xmltoolkit25(self):
2258 # typo in ElementTree.findtext
2259
2260 elem = ET.XML(SAMPLE_XML)
2261 tree = ET.ElementTree(elem)
2262 self.assertEqual(tree.findtext("tag"), 'text')
2263 self.assertEqual(tree.findtext("section/tag"), 'subtext')
2264
2265 def test_bug_xmltoolkit28(self):
2266 # .//tag causes exceptions

Callers

nothing calls this directly

Calls 2

findtextMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected