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

Method test_bug_xmltoolkit28

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

Source from the content-addressed store, hash-verified

2263 self.assertEqual(tree.findtext("section/tag"), 'subtext')
2264
2265 def test_bug_xmltoolkit28(self):
2266 # .//tag causes exceptions
2267
2268 tree = ET.XML("<doc><table><tbody/></table></doc>")
2269 self.assertEqual(summarize_list(tree.findall(".//thead")), [])
2270 self.assertEqual(summarize_list(tree.findall(".//tbody")), ['tbody'])
2271
2272 def test_bug_xmltoolkitX1(self):
2273 # dump() doesn't flush the output buffer

Callers

nothing calls this directly

Calls 3

summarize_listFunction · 0.85
assertEqualMethod · 0.45
findallMethod · 0.45

Tested by

no test coverage detected