@@ -26,7 +26,7 @@
26from __future__ import absolute_import
26from __future__ import absolute_import
28from unity8.shell.tests import Unity8TestCase
28from unity8.shell.tests import Unity8TestCase
29−from unity8.shell.tests.helpers import TestShellHelpers
29+from unity8.shell.tests.helpers import with_lightdm_mock
31from autopilot.input import Mouse, Touch, Pointer
31from autopilot.input import Mouse, Touch, Pointer
32from testtools.matchers import Equals, NotEquals, GreaterThan, MismatchError
32from testtools.matchers import Equals, NotEquals, GreaterThan, MismatchError
@@ -62,6 +62,7 @@ class TestLockscreen(Unity8TestCase):
62 # dash = self.main_window.get_dash()
62 # dash = self.main_window.get_dash()
63 # self.assertThat(dash.showScopeOnLoaded, Eventually(Equals(""), timeout=30))
63 # self.assertThat(dash.showScopeOnLoaded, Eventually(Equals(""), timeout=30))
65+ @with_lightdm_mock("single_pin")
65 def test_can_unlock_screen(self):
66 def test_can_unlock_screen(self):
66 """Must be able to unlock the screen."""
67 """Must be able to unlock the screen."""
67 self.lightdm_mock = "single_pin"
68 self.lightdm_mock = "single_pin"