class_docstr: Tests for the NodeList class.
class_docstr_tok: ["Tests","for","the","NodeList","class","."]
code: def test_nodelist_copy(self):
      # Empty NodeList.
      node_list = NodeList()
      copied = copy.copy(node_list)
      self.assertIsNot(copied, node_list)
      self.assertEqual(copied, node_list)
  
      # Non-empty NodeList.
      node_list.append([1])
      node_list.append([2])
      copied = copy.copy(node_list)
      self.assertIsNot(copied, node_list)
      self.assertEqual(copied, node_list)
      for x, y in zip(copied, node_list):
          self.assertIs(x, y)
  
file_path: cpython/Lib/test/test_xml_dom_minicompat.py
imports: import copy
  import pickle
  import unittest
  import xml.dom
  from xml.dom.minicompat import *
label_desc: Use image node_id 6 for calling the NodeListTestCase obj's underlying member method code with example usage: obj.test_nodelist_copy() without return types