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

Method test_bug_200709_element_comment

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

Source from the content-addressed store, hash-verified

2425 b'<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/" />')
2426
2427 def test_bug_200709_element_comment(self):
2428 # Not sure if this can be fixed, really (since the serializer needs
2429 # ET.Comment, not cET.comment).
2430
2431 a = ET.Element('a')
2432 a.append(ET.Comment('foo'))
2433 self.assertEqual(a[0].tag, ET.Comment)
2434
2435 a = ET.Element('a')
2436 a.append(ET.PI('foo'))
2437 self.assertEqual(a[0].tag, ET.PI)
2438
2439 def test_bug_200709_element_insert(self):
2440 a = ET.Element('a')

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected