@@ -26,21 +26,22 @@ import os
2626
2727from autopilot.matchers import Eventually
2828from autopilot.platform import model
29−from testtools.matchers import Equals, NotEquals
29+from testtools.matchers import Equals
3030from ubuntuuitoolkit import (
3131 base,
3232 emulators as toolkit_emulators,
3333)
3434
35+from unity8.application_lifecycle import tests
3536from unity8.process_helpers import unlock_unity
3637from 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
3839
3940
4041logger = logging.getLogger(__name__)
4142
4243
43−class ApplicationLifecycleTests(UnityTestCase):
44+class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
4445
4546 scenarios = _get_device_emulation_scenarios()
4647
@@ -98,11 +99,7 @@ class ApplicationLifecycleTests(UnityTestCase):
9899 unlock_unity(unity_proxy)
99100
100101 application_name = self.launch_fake_app()
101−
102− self.assertThat(
103− self.main_window.get_current_focused_app_id(),
104− Eventually(Equals(application_name))
105− )
102+ self.assert_current_focused_application(application_name)
106103
107104 @disable_qml_mocking
108105 def test_can_launch_multiple_applications(self):