Home | History | Annotate | Download | only in test

Lines Matching refs:NodeList

35         node_list = EmptyNodeList() + NodeList()
36 self.assertEqual(node_list, NodeList())
44 """Tests for the NodeList class."""
47 # Test items access on a NodeList.
48 # First, use an empty NodeList.
49 node_list = NodeList()
59 # Now, use a NodeList with items.
70 node_list = NodeList([1, 2])
78 node_list = NodeList([3, 4]) + [1, 2]
79 self.assertEqual(node_list, NodeList([3, 4, 1, 2]))
82 node_list = [1, 2] + NodeList([3, 4])
83 self.assertEqual(node_list, NodeList([1, 2, 3, 4]))
86 # Test pickling and unpickling of a NodeList.
89 # Empty NodeList.
90 node_list = NodeList()
96 # Non-empty NodeList.
105 # Empty NodeList.
106 node_list = NodeList()
111 # Non-empty NodeList.
121 # Empty NodeList.
122 node_list = NodeList()
127 # Non-empty NodeList.