def METHOD_NAME(self):
    node_list = NodeList([1, 2])
    # Reading
    self.assertEqual(node_list.length, 2)
    # Writing
    with self.assertRaises(xml.dom.NoModificationAllowedErr):
        node_list.length = 111