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

Method test_bug_200709_iter_comment

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

Source from the content-addressed store, hash-verified

2447 self.assertEqual(summarize_list(a), ['d', 'b', 'd', 'c'])
2448
2449 def test_bug_200709_iter_comment(self):
2450 a = ET.Element('a')
2451 b = ET.SubElement(a, 'b')
2452 comment_b = ET.Comment("TEST-b")
2453 b.append(comment_b)
2454 self.assertEqual(summarize_list(a.iter(ET.Comment)), [ET.Comment])
2455
2456 # --------------------------------------------------------------------
2457 # reported on bugs.python.org

Callers

nothing calls this directly

Calls 4

iterMethod · 0.95
summarize_listFunction · 0.85
appendMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected