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-21 23:04:06 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-21 23:16:29 (GMT)
commit0cda7ee911d4117ae3e94e808b76650013f85b6b (patch)
treeb089f3426f48fef6dc182bfdf961e3d3cf18f996 /tests/tree.py
parent337dc1c4dac1530346f43b995f82aa4a49542d99 (diff)
Ensure an activity is really down after stopping it
Diffstat (limited to 'tests/tree.py')
-rw-r--r--tests/tree.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tree.py b/tests/tree.py
index fe6d24f..414a900 100644
--- a/tests/tree.py
+++ b/tests/tree.py
@@ -17,7 +17,9 @@ def retry_find(func):
kwargs.get("role_name", None))
result = func(*args, **kwargs)
- if result:
+ expect_none = kwargs.get("expect_none", False)
+ if (not expect_none and result) or \
+ (expect_none and not result):
return result
time.sleep(5)
@@ -43,7 +45,7 @@ class Node:
return True
@retry_find
- def find_child(self, name=None, role_name=None):
+ def find_child(self, name=None, role_name=None, expect_none=False):
def predicate(accessible):
return self._predicate(accessible, name, role_name)