on xenial help sign in
Explicitly import model, eliminate phantom self.model.
b1a7ba3Allan LeSage
tests/autopilot/unity8/indicators/tests/test_indicators.py+2−2
@@ -19,7 +19,7 @@
19
19
20from __future__ import absolute_import
20from __future__ import absolute_import
21
21
22−import autopilot.platform
22+from autopilot import platform
23
23
24from unity8.indicators.emulators.widget import DefaultIndicatorWidget
24from unity8.indicators.emulators.widget import DefaultIndicatorWidget
25from unity8.process_helpers import unlock_unity
25from unity8.process_helpers import unlock_unity
@@ -39,7 +39,7 @@ class IndicatorTestCase(UnityTestCase):
39 ]
39 ]
40
40
41 def setUp(self):
41 def setUp(self):
42− if self.model() == "Desktop":
42+ if platform.model() == "Desktop":
43 self.skipTest("Test cannot be run on the desktop.")
43 self.skipTest("Test cannot be run on the desktop.")
44 super(IndicatorTestCase, self).setUp()
44 super(IndicatorTestCase, self).setUp()
45
45