@@ -22,6 +22,7 @@ from __future__ import absolute_import
2222from autopilot import platform
2323from testtools import skipIf
2424
25+from unity8.process_helpers import unlock_unity
2526from unity8.shell.tests import UnityTestCase
2627
2728
@@ -37,13 +38,15 @@ class IndicatorTestCase(UnityTestCase):
3738 ('Sound', dict(indicator_name='indicator-sound')),
3839 ]
3940
40− @skipIf(platform.image_codename()=='Desktop', "Unity8/phablet-only test!")
41+ @skipIf(platform.image_codename() == 'Desktop',
42+ "Unity8/phablet-only test!")
4143 def setUp(self):
42− super(UnityTestCase, self).setUp()
44+ super(IndicatorTestCase, self).setUp()
4345
4446 def test_indicator_exists(self):
4547 """The tab of a given indicator can be found."""
46− self.launch_unity()
48+ unity_proxy = self.launch_unity()
49+ unlock_unity(unity_proxy)
4750 self.main_window.get_greeter().swipe()
4851 indicator = self.main_window.get_indicator(self.indicator_name)
4952 self.assertIsNotNone(indicator)