Lines Matching full:children
55 self.assertEqual(2, len(tree.children))
56 self.assertEqual('simple_stmt', pytree_utils.NodeName(tree.children[0]))
62 self.assertEqual(2, len(tree.children))
63 self.assertEqual('simple_stmt', pytree_utils.NodeName(tree.children[0]))
68 self.assertEqual(2, len(tree.children))
69 self.assertEqual('simple_stmt', pytree_utils.NodeName(tree.children[0]))
74 self.assertEqual(2, len(tree.children))
75 self.assertEqual('classdef', pytree_utils.NodeName(tree.children[0]))
106 self._simple_tree.children[2])
107 self.assertEqual(4, len(self._simple_tree.children))
109 pytree_utils.NodeName(self._simple_tree.children[2]))
111 pytree_utils.NodeName(self._simple_tree.children[3]))
115 simple_stmt = self._simple_tree.children[2]
116 foo_child = simple_stmt.children[0]
118 self.assertEqual(3, len(self._simple_tree.children))
119 self.assertEqual(2, len(simple_stmt.children))
120 self.assertEqual('RPAR', pytree_utils.NodeName(simple_stmt.children[0]))
121 self.assertEqual('NAME', pytree_utils.NodeName(simple_stmt.children[1]))
126 self._simple_tree.children[2])
127 self.assertEqual(4, len(self._simple_tree.children))
129 pytree_utils.NodeName(self._simple_tree.children[2]))
131 pytree_utils.NodeName(self._simple_tree.children[3]))
135 simple_stmt = self._simple_tree.children[2]
136 foo_child = simple_stmt.children[0]
138 self.assertEqual(3, len(self._simple_tree.children))
139 self.assertEqual(2, len(simple_stmt.children))
140 self.assertEqual('NAME', pytree_utils.NodeName(simple_stmt.children[0]))
141 self.assertEqual('RPAR', pytree_utils.NodeName(simple_stmt.children[1]))
146 pytree_utils.InsertNodesAfter([self._simple_tree.children[1]],
147 self._simple_tree.children[0])