@@ -51,7 +51,8 @@ logger = logging.getLogger(__name__)
5151UNITYSHELL_GSETTINGS_SCHEMA = "org.compiz.unityshell"
5252UNITYSHELL_GSETTINGS_PATH = "/org/compiz/profiles/unity/plugins/unityshell/"
5353UNITYSHELL_LAUNCHER_KEY = "launcher-hide-mode"
54−UNITYSHELL_LAUNCHER_MODE = 1 # launcher hidden
54+UNITYSHELL_LAUNCHER_MODE = 1 # launcher hidden
55+
5556
5657def _get_device_emulation_scenarios(devices='All'):
5758 nexus4 = ('Desktop Nexus 4',
@@ -69,10 +70,13 @@ def _get_device_emulation_scenarios(devices='All'):
6970 elif devices == 'Nexus10':
7071 return [nexus10]
7172 else:
72− raise RuntimeError('Unrecognized device-option "%s" passed.' % devices)
73+ raise RuntimeError(
74+ 'Unrecognized device-option "%s" passed.' % devices
75+ )
7376 else:
7477 return [native]
7578
79+
7680class UnityTestCase(AutopilotTestCase):
7781
7882 """A test case base class for the Unity shell tests."""
@@ -125,7 +129,7 @@ class UnityTestCase(AutopilotTestCase):
125129 self._setup_display_details()
126130
127131 self._using_upstart = False
128− if model() != "Desktop": # or check env
132+ if model() != "Desktop": # or check env
129133 self._using_upstart = True
130134
131135 def _reset_launcher(self):