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

Method test_bug_200709_element_comment

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

Source from the content-addressed store, hash-verified

2386 b'<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/" />')
2387
2388 def test_bug_200709_element_comment(self):
2389 # Not sure if this can be fixed, really (since the serializer needs
2390 # ET.Comment, not cET.comment).
2391
2392 a = ET.Element('a')
2393 a.append(ET.Comment('foo'))
2394 self.assertEqual(a[0].tag, ET.Comment)
2395
2396 a = ET.Element('a')
2397 a.append(ET.PI('foo'))
2398 self.assertEqual(a[0].tag, ET.PI)
2399
2400 def test_bug_200709_element_insert(self):
2401 a = ET.Element('a')

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected