@@ -38,10 +38,7 @@ class TestIndicatorBaseTestCase(tests.IndicatorTestCase):
38 def setUp(self):
38 def setUp(self):
39 super(TestIndicatorBaseTestCase, self).setUp()
39 super(TestIndicatorBaseTestCase, self).setUp()
42− environment['ARGS'] = '-t {0}'\
43− .format(self.action_delay)
44− self.launch_indicator_service(environment)
41+ self.launch_indicator_service()
46 # wait for the indicator to appear in unity
43 # wait for the indicator to appear in unity
47 self.indicator = indicators.TestIndicator(self.main_window)
44 self.indicator = indicators.TestIndicator(self.main_window)
@@ -51,8 +48,8 @@ class TestIndicatorBaseTestCase(tests.IndicatorTestCase):
52 self.indicator_page = self.indicator.open()
49 self.indicator_page = self.indicator.open()
54− def launch_indicator_service(self, variables):
51+ def launch_indicator_service(self):
55− launch_service_fixture = fixture_setup.LaunchMockIndicatorService(variables)
52+ launch_service_fixture = fixture_setup.LaunchMockIndicatorService(self.action_delay)
56 self.useFixture(launch_service_fixture)
53 self.useFixture(launch_service_fixture)
@@ -61,9 +58,9 @@ class TestServerValueUpdate(TestIndicatorBaseTestCase):
61 """Test that an action causes the server to update"""
58 """Test that an action causes the server to update"""
63 time_scenarios = [
60 time_scenarios = [
64− ('Low', dict(action_delay=0)),
61+ ('Low', {'action_delay': 0}),
65− ('Medium', dict(action_delay=2500)),
62+ ('Medium', {'action_delay': 2500}),
66− ('High', dict(action_delay=8000)),
63+ ('High', {'action_delay': 8000}),
68 scenarios = multiply_scenarios(
65 scenarios = multiply_scenarios(
69 time_scenarios,
66 time_scenarios,
@@ -106,7 +103,7 @@ class TestBuffering(TestIndicatorBaseTestCase):
107 action_delay = 2500
104 action_delay = 2500
109− def test_buffered_switch(self):
106+ def test_switch_buffers_actvations(self):
111 switch = self.indicator_page.get_switcher()
108 switch = self.indicator_page.get_switcher()
112 switch.change_state()
109 switch.change_state()
@@ -142,7 +139,7 @@ class TestBuffering(TestIndicatorBaseTestCase):
142 Equals(switch_menu.serverChecked)
139 Equals(switch_menu.serverChecked)
145− def test_buffered_slider(self):
142+ def test_slider_buffers_activations(self):
147 slider = self.indicator_page.get_slider()
144 slider = self.indicator_page.get_slider()
148 original_value = slider.value;
145 original_value = slider.value;