diff options
author | Benjamin Berg <bberg@redhat.com> | 2018-01-04 15:33:42 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2018-01-15 15:00:22 +0100 |
commit | 9725d89d8f5aa796eb8573e8dfb54f1a6459a988 (patch) | |
tree | 4f9150a1811495ad1db6d5e4c09aa08c830d1de1 | |
parent | 8b92770eec04a93527de2b0566f285f4061c4a96 (diff) | |
download | gnome-settings-daemon-9725d89d8f5aa796eb8573e8dfb54f1a6459a988.tar.gz |
power: Fix test access of logind mock object
The logind object attribute was renamed when moving to the dbusmock
template rather than using something custom. Update the tests to reflect
this. This happened in commit f581667b (tests: Use existing logind template).
https://bugzilla.gnome.org/show_bug.cgi?id=792210
-rwxr-xr-x | plugins/power/test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/power/test.py b/plugins/power/test.py index f6cb9544..938064f6 100755 --- a/plugins/power/test.py +++ b/plugins/power/test.py @@ -480,11 +480,11 @@ class PowerPluginTest(gsdtestcase.GSDTestCase): self.assertEqual(self.get_status(), gsdpowerenums.GSM_PRESENCE_STATUS_IDLE) # Go to sleep - self.obj_logind.EmitSignal('', 'PrepareForSleep', 'b', [True], dbus_interface='org.freedesktop.DBus.Mock') + self.logind_obj.EmitSignal('', 'PrepareForSleep', 'b', [True], dbus_interface='org.freedesktop.DBus.Mock') time.sleep(1) # Wake up - self.obj_logind.EmitSignal('', 'PrepareForSleep', 'b', [False], dbus_interface='org.freedesktop.DBus.Mock') + self.logind_obj.EmitSignal('', 'PrepareForSleep', 'b', [False], dbus_interface='org.freedesktop.DBus.Mock') time.sleep(1) # And check we're not idle @@ -648,11 +648,11 @@ class PowerPluginTest(gsdtestcase.GSDTestCase): self.check_blank(2) # Go to sleep - self.obj_logind.EmitSignal('', 'PrepareForSleep', 'b', [True], dbus_interface='org.freedesktop.DBus.Mock') + self.logind_obj.EmitSignal('', 'PrepareForSleep', 'b', [True], dbus_interface='org.freedesktop.DBus.Mock') time.sleep(1) # Wake up - self.obj_logind.EmitSignal('', 'PrepareForSleep', 'b', [False], dbus_interface='org.freedesktop.DBus.Mock') + self.logind_obj.EmitSignal('', 'PrepareForSleep', 'b', [False], dbus_interface='org.freedesktop.DBus.Mock') time.sleep(1) # And check that we have the pre-dim brightness |