@@ -22,6 +22,7 @@ from __future__ import absolute_import
22from autopilot import platform
22from autopilot import platform
23from testtools import skipIf
23from testtools import skipIf
25+from unity8.process_helpers import unlock_unity
25from unity8.shell.tests import UnityTestCase
26from unity8.shell.tests import UnityTestCase
@@ -37,13 +38,15 @@ class IndicatorTestCase(UnityTestCase):
37 ('Sound', dict(indicator_name='indicator-sound')),
38 ('Sound', dict(indicator_name='indicator-sound')),
40− @skipIf(platform.image_codename()=='Desktop', "Unity8/phablet-only test!")
41+ @skipIf(platform.image_codename() == 'Desktop',
42+ "Unity8/phablet-only test!")
41 def setUp(self):
43 def setUp(self):
42− super(UnityTestCase, self).setUp()
44+ super(IndicatorTestCase, self).setUp()
44 def test_indicator_exists(self):
46 def test_indicator_exists(self):
45 """The tab of a given indicator can be found."""
47 """The tab of a given indicator can be found."""
46− self.launch_unity()
48+ unity_proxy = self.launch_unity()
49+ unlock_unity(unity_proxy)
47 self.main_window.get_greeter().swipe()
50 self.main_window.get_greeter().swipe()
48 indicator = self.main_window.get_indicator(self.indicator_name)
51 indicator = self.main_window.get_indicator(self.indicator_name)
49 self.assertIsNotNone(indicator)
52 self.assertIsNotNone(indicator)