@@ -26,21 +26,22 @@ import os
27from autopilot.matchers import Eventually
27from autopilot.matchers import Eventually
28from autopilot.platform import model
28from autopilot.platform import model
29−from testtools.matchers import Equals, NotEquals
29+from testtools.matchers import Equals
30from ubuntuuitoolkit import (
30from ubuntuuitoolkit import (
32 emulators as toolkit_emulators,
32 emulators as toolkit_emulators,
35+from unity8.application_lifecycle import tests
35from unity8.process_helpers import unlock_unity
36from unity8.process_helpers import unlock_unity
36from unity8.shell import disable_qml_mocking
37from unity8.shell import disable_qml_mocking
37−from unity8.shell.tests import UnityTestCase, _get_device_emulation_scenarios
38+from unity8.shell.tests import _get_device_emulation_scenarios
40logger = logging.getLogger(__name__)
41logger = logging.getLogger(__name__)
43−class ApplicationLifecycleTests(UnityTestCase):
44+class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
45 scenarios = _get_device_emulation_scenarios()
46 scenarios = _get_device_emulation_scenarios()
@@ -98,11 +99,7 @@ class ApplicationLifecycleTests(UnityTestCase):
98 unlock_unity(unity_proxy)
99 unlock_unity(unity_proxy)
100 application_name = self.launch_fake_app()
101 application_name = self.launch_fake_app()
101−
102+ self.assert_current_focused_application(application_name)
103− self.main_window.get_current_focused_app_id(),
104− Eventually(Equals(application_name))
107 @disable_qml_mocking
104 @disable_qml_mocking
108 def test_can_launch_multiple_applications(self):
105 def test_can_launch_multiple_applications(self):