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

Method test_attlist_default

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

Source from the content-addressed store, hash-verified

1325 '<cirriculum status="public" company="example"></cirriculum>')
1326
1327 def test_attlist_default(self):
1328 # Test default attribute values; See BPO 42151.
1329 root = ET.fromstring(ATTLIST_XML)
1330 self.assertEqual(root[0].attrib,
1331 {'{http://www.w3.org/XML/1998/namespace}lang': 'eng'})
1332
1333
1334class IterparseTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

fromstringMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected