From 0cda7ee911d4117ae3e94e808b76650013f85b6b Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 21 Nov 2012 23:04:06 +0000 Subject: Ensure an activity is really down after stopping it --- (limited to 'tests/shell.py') 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") -- cgit v0.9.1