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

Method test_nodelist_length

Lib/test/test_xml_dom_minicompat.py:69–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 self.assertEqual(node_list[-1], 999)
68
69 def test_nodelist_length(self):
70 node_list = NodeList([1, 2])
71 # Reading
72 self.assertEqual(node_list.length, 2)
73 # Writing
74 with self.assertRaises(xml.dom.NoModificationAllowedErr):
75 node_list.length = 111
76
77 def test_nodelist___add__(self):
78 node_list = NodeList([3, 4]) + [1, 2]

Callers

nothing calls this directly

Calls 3

NodeListClass · 0.85
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected