@@ -48,6 +48,9 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
4848 if model() == "Desktop":
4949 self.skipTest("Test cannot be run on the desktop.")
5050
51+ unity_proxy = self.launch_unity()
52+ unlock_unity(unity_proxy)
53+
5154 def swipe_screen_from_right(self):
5255 width = self.main_window.width
5356 height = self.main_window.height
@@ -75,18 +78,12 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
7578 @disable_qml_mocking
7679 def test_can_launch_application(self):
7780 """Must be able to launch an application."""
78− unity_proxy = self.launch_unity()
79− unlock_unity(unity_proxy)
80−
8181 application_name = self.launch_fake_app()
8282 self.assert_current_focused_application(application_name)
8383
8484 @disable_qml_mocking
8585 def test_can_launch_multiple_applications(self):
8686 """A second application launched must be focused."""
87− unity_proxy = self.launch_unity()
88− unlock_unity(unity_proxy)
89−
9087 application1_name = self.launch_fake_app()
9188 self.assert_current_focused_application(application1_name)
9289
@@ -100,9 +97,6 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
10097 brought back to the focused state.
10198
10299 """
103− unity_proxy = self.launch_unity()
104− unlock_unity(unity_proxy)
105−
106100 application1_name = self.launch_fake_app()
107101 self.assert_current_focused_application(application1_name)
108102