@@ -40,9 +40,9 @@ import os
40from os import path
40from os import path
43−class TestShell(ShellTestCase, TestShellHelpers):
43+class TestLockscreens(ShellTestCase, TestShellHelpers):
45− """Tests the Shell"""
45+ """Tests the Lockscreens"""
47 # Scenarios:
47 # Scenarios:
48 # Fill in the scenarios to run the whole test suite with multiple configurations.
48 # Fill in the scenarios to run the whole test suite with multiple configurations.
@@ -68,14 +68,14 @@ class TestShell(ShellTestCase, TestShellHelpers):
68 divisor = 1
68 divisor = 1
69 while (sg.get_screen_width() < self.app_width / divisor or sg.get_screen_height() < self.app_height / divisor):
69 while (sg.get_screen_width() < self.app_width / divisor or sg.get_screen_height() < self.app_height / divisor):
70 divisor = divisor * 2
70 divisor = divisor * 2
71− super(TestShell, self).setUp("%sx%s" % (self.app_width / divisor, self.app_height / divisor), "%s" % (self.grid_unit_px / divisor))
71+ super(TestLockscreens, self).setUp("%sx%s" % (self.app_width / divisor, self.app_height / divisor), "%s" % (self.grid_unit_px / divisor))
73 dash = self.main_window.get_dash()
73 dash = self.main_window.get_dash()
74 self.assertThat(dash.showLensOnLoaded, Eventually(Equals(""), timeout=30))
74 self.assertThat(dash.showLensOnLoaded, Eventually(Equals(""), timeout=30))
76 def test_unlock(self):
76 def test_unlock(self):
77 self.unlock_greeter()
77 self.unlock_greeter()
79 pinPadLoader = self.main_window.get_pinPadLoader();
79 pinPadLoader = self.main_window.get_pinPadLoader();
80 self.assertThat(pinPadLoader.progress, Eventually(Equals(1)))
80 self.assertThat(pinPadLoader.progress, Eventually(Equals(1)))
81 lockscreen = self.main_window.get_lockscreen();
81 lockscreen = self.main_window.get_lockscreen();
@@ -95,7 +95,7 @@ class TestShell(ShellTestCase, TestShellHelpers):
96 def test_unlock_wrong(self):
96 def test_unlock_wrong(self):
97 self.unlock_greeter()
97 self.unlock_greeter()
99 pinPadLoader = self.main_window.get_pinPadLoader();
99 pinPadLoader = self.main_window.get_pinPadLoader();
100 self.assertThat(pinPadLoader.progress, Eventually(Equals(1)))
100 self.assertThat(pinPadLoader.progress, Eventually(Equals(1)))
101 lockscreen = self.main_window.get_lockscreen();
101 lockscreen = self.main_window.get_lockscreen();