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

Method test_tree_write_attribute_order

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

Source from the content-addressed store, hash-verified

1317 '<cirriculum status="public" company="example" />\n')
1318
1319 def test_tree_write_attribute_order(self):
1320 # See BPO 34160
1321 root = ET.Element('cirriculum', status='public', company='example')
1322 self.assertEqual(serialize(root),
1323 '<cirriculum status="public" company="example" />')
1324 self.assertEqual(serialize(root, method='html'),
1325 '<cirriculum status="public" company="example"></cirriculum>')
1326
1327 def test_attlist_default(self):
1328 # Test default attribute values; See BPO 42151.

Callers

nothing calls this directly

Calls 2

serializeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected