Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/tree.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-11 21:36:02 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-11 21:36:02 (GMT)
commit3736529c12cb8f0a480209554bcbd9de60eff0b1 (patch)
tree6ecc23c09b083b4d60e1653f58d53f48c92eddb7 /tests/tree.py
parent2634e737c752756a4d5a2177c6a88babf2088ac1 (diff)
Cannot use find_children to iterate
It's recursive
Diffstat (limited to 'tests/tree.py')
-rw-r--r--tests/tree.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/tree.py b/tests/tree.py
index 8725098..c41a177 100644
--- a/tests/tree.py
+++ b/tests/tree.py
@@ -55,9 +55,6 @@ class Node:
@retry_find
def find_children(self, name=None, role_name=None):
- return self._find_children_internal(name, role_name)
-
- def _find_children_internal(self, name=None, role_name=None):
def predicate(accessible):
return self._predicate(accessible, name, role_name)
@@ -73,8 +70,8 @@ class Node:
def _crawl_accessible(self, node, depth):
self._dump_accessible(node, depth)
- for child in node._find_children_internal():
- self._crawl_accessible(child, depth + 1)
+ for child in node._accessible:
+ self._crawl_accessible(Node(child), depth + 1)
def dump(self):
self._crawl_accessible(self, 0)