summaryrefslogtreecommitdiff
path: root/tests
diff options
authorThomi Richards <thomir@gmail.com>2012-01-11 14:17:34 +0100
committerThomi Richards <thomir@gmail.com>2012-01-11 14:17:34 +0100
commit31034bfba3107ede040a613701d2197d87190a09 (patch)
tree2410643e3bbe363fe6fb9825e1de630229ab0393 /tests
parent2d4f50d630de89f9f9e9db3a754050473d9c5a0a (diff)
Whitespace fixes
(bzr r1819.2.6)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/autopilot/emulators/unity.py76
1 files changed, 38 insertions, 38 deletions
diff --git a/tests/autopilot/autopilot/emulators/unity.py b/tests/autopilot/autopilot/emulators/unity.py
index c3f5219e4..04ecf88d1 100644
--- a/tests/autopilot/autopilot/emulators/unity.py
+++ b/tests/autopilot/autopilot/emulators/unity.py
@@ -177,44 +177,44 @@ class Switcher(Unity):
return bool(self.get_state('/Unity/SwitcherController')[0]['visible'])
class Dash(Unity):
- """
- An emulator class that makes it easier to interact with the unity dash.
- """
-
- def __init__(self):
- self.plugin = Plugin(global_context, "unityshell")
- self.setting = Setting(self.plugin, "show_launcher")
- super(Dash, self).__init__()
-
- def toggle_reveal(self):
- """
- Reveals the dash if it's currently hidden, hides it otherwise.
- """
- self._keyboard.press_and_release("^W")
- sleep(1)
-
- def ensure_visible(self):
- """
- Ensures the dash is visible.
- """
- if not self.get_is_visible():
- self.toggle_reveal();
-
- def ensure_hidden(self):
- """
- Ensures the dash is hidden.
- """
- if self.get_is_visible():
- self.toggle_reveal();
-
- def get_is_visible(self):
- """
- Is the dash visible?
- """
+ """
+ An emulator class that makes it easier to interact with the unity dash.
+ """
+
+ def __init__(self):
+ self.plugin = Plugin(global_context, "unityshell")
+ self.setting = Setting(self.plugin, "show_launcher")
+ super(Dash, self).__init__()
+
+ def toggle_reveal(self):
+ """
+ Reveals the dash if it's currently hidden, hides it otherwise.
+ """
+ self._keyboard.press_and_release("^W")
+ sleep(1)
+
+ def ensure_visible(self):
+ """
+ Ensures the dash is visible.
+ """
+ if not self.get_is_visible():
+ self.toggle_reveal();
+
+ def ensure_hidden(self):
+ """
+ Ensures the dash is hidden.
+ """
+ if self.get_is_visible():
+ self.toggle_reveal();
+
+ def get_is_visible(self):
+ """
+ Is the dash visible?
+ """
return bool(self.get_state("/Unity/DashController")[0]["visible"])
- def get_search_string(self):
- """
- Return the current dash search bar search string.
- """
+ def get_search_string(self):
+ """
+ Return the current dash search bar search string.
+ """
return unicode(self.get_state("//SearchBar")[0]['search_string'])