Ejemplo n.º 1
0
 def test_check_internal_nodes(self):
     tree = TreeNode.read([u"(((a,b)y2, c)x,d)r;"])
     check_internal_nodes(tree)
Ejemplo n.º 2
0
 def test_check_internal_nodes(self):
     tree = TreeNode.read([u"(((a,b)y2, c)x,d)r;"])
     check_internal_nodes(tree)
Ejemplo n.º 3
0
 def test_check_internal_nodes_error(self):
     tree = TreeNode.read([u"(((a,b)y2, c),d)r;"])
     with self.assertRaises(ValueError):
         check_internal_nodes(tree)
Ejemplo n.º 4
0
 def test_check_internal_nodes_error(self):
     tree = TreeNode.read([u"(((a,b)y2, c),d)r;"])
     with self.assertRaises(ValueError):
         check_internal_nodes(tree)