Improved doc-string explaining snap-decision test and added an exception to catch any unknown device-options.
commit000d9d0a29899c22f99c0950c5db6a493a397194
authorMirco Müller <mirco.mueller@ubuntu.com>
dateMon 5 Aug 2013, 10:09 (13 years ago)
parente34be15
tests/autopilot/unity8/shell/tests/__init__.py+2
@@ -66,6 +66,8 @@ def _get_device_emulation_scenarios(devices='All'):
6666 return [nexus4]
6767 elif devices == 'Nexus10':
6868 return [nexus10]
69+ else:
70+ raise RuntimeException('Unrecognized device-option "%s" passed.' % devices)
6971 else:
7072 return [native]
7173
tests/autopilot/unity8/shell/tests/test_notifications.py+1−1
@@ -156,7 +156,7 @@ class InteractiveNotificationBase(NotificationsBase):
156156 self.assert_notification_action_id_was_called('action_id')
157157
158158 def test_sd_incoming_call(self):
159− """Snap-decision simulating incoming call."""
159+ """Rejecting a call should make notification expand and offer more options."""
160160 self.launch_unity()
161161 greeter = self.main_window.get_greeter()
162162 greeter.unlock()