MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_bug_200709_iter_comment

Method test_bug_200709_iter_comment

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

Source from the content-addressed store, hash-verified

2408 self.assertEqual(summarize_list(a), ['d', 'b', 'd', 'c'])
2409
2410 def test_bug_200709_iter_comment(self):
2411 a = ET.Element('a')
2412 b = ET.SubElement(a, 'b')
2413 comment_b = ET.Comment("TEST-b")
2414 b.append(comment_b)
2415 self.assertEqual(summarize_list(a.iter(ET.Comment)), [ET.Comment])
2416
2417 # --------------------------------------------------------------------
2418 # 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