diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-21 23:04:06 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-21 23:16:29 (GMT) |
commit | 0cda7ee911d4117ae3e94e808b76650013f85b6b (patch) | |
tree | b089f3426f48fef6dc182bfdf961e3d3cf18f996 /tests/shell.py | |
parent | 337dc1c4dac1530346f43b995f82aa4a49542d99 (diff) |
Ensure an activity is really down after stopping it
Diffstat (limited to 'tests/shell.py')
-rw-r--r-- | tests/shell.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell.py b/tests/shell.py index c02b5f5..03d4036 100644 --- a/tests/shell.py +++ b/tests/shell.py @@ -53,6 +53,12 @@ def launch_and_stop_activity(activity_name): stop_button = activity.find_child(name="Stop", role_name="push button") stop_button.do_action("click") + activity = root.find_child(name="sugar-activity", + role_name="application", + expect_none=True) + if activity is not None: + raise RuntimeError + def go_to_list_view(): root = tree.get_root() shell = root.find_child(name="sugar-session", role_name="application") |