未验证 提交 6c47a888 编写于 作者: L Lukáš Doktor

Merging pull request 1291

* https://github.com/avocado-framework/avocado:
  avocado/core/tree.py: replace get_ascii() for tree_view()
......@@ -271,7 +271,7 @@ class TreeNode(object):
node = child
else:
raise ValueError("Path %s does not exists in this tree\n%s"
% (path, self.get_ascii()))
% (path, tree_view(self.root)))
return node
def iter_children_preorder(self):
......
......@@ -192,6 +192,10 @@ class TestTree(unittest.TestCase):
self.assertEqual(tree2.children[0].children[1].children[0].multiplex,
None)
def test_get_node(self):
self.assertRaises(ValueError,
self.tree.get_node, '/non-existing-node')
class TestPathParent(unittest.TestCase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册