summaryrefslogtreecommitdiff
path: root/tests
diff options
authorTimo Jyrinki <timo.jyrinki@canonical.com>2012-11-19 16:01:37 +0200
committerTimo Jyrinki <timo.jyrinki@canonical.com>2012-11-19 16:01:37 +0200
commitad23d096dbfb3b02ae6b02f22c96234a6ac004ee (patch)
tree109edb3adc79728620988c7ca0495518488e1bf5 /tests
parent70cce3e0d6446da142641c31bb969a216026df29 (diff)
Fix files lens header clicking on non-English locales in test_click_inside_highlight
(bzr r2910.1.1)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/unity/tests/test_dash.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/autopilot/unity/tests/test_dash.py b/tests/autopilot/unity/tests/test_dash.py
index 2435e6580..e061a6e91 100644
--- a/tests/autopilot/unity/tests/test_dash.py
+++ b/tests/autopilot/unity/tests/test_dash.py
@@ -15,6 +15,7 @@ from time import sleep
from unity.tests import UnityTestCase
+import gettext
class DashTestCase(UnityTestCase):
def setUp(self):
@@ -25,6 +26,7 @@ class DashTestCase(UnityTestCase):
# On shutdown, ensure hidden too. Also add a delay. Cleanup is LIFO.
self.addCleanup(self.dash.ensure_hidden)
self.addCleanup(sleep, 1)
+ gettext.install("unity-lens-files")
class DashRevealTests(DashTestCase):
@@ -665,7 +667,7 @@ class CategoryHeaderTests(DashTestCase):
lens = self.dash.reveal_file_lens()
self.addCleanup(self.dash.ensure_hidden)
- category = lens.get_category_by_name("Folders")
+ category = lens.get_category_by_name(_("Folders"))
is_expanded = category.is_expanded
self.mouse.move(self.dash.view.x + self.dash.view.width / 2,