[gnome-settings-daemon] power: Fix test access of logind mock object
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Fix test access of logind mock object
- Date: Mon, 15 Jan 2018 16:20:53 +0000 (UTC)
commit 9725d89d8f5aa796eb8573e8dfb54f1a6459a988
Author: Benjamin Berg <bberg redhat com>
Date: Thu Jan 4 15:33:42 2018 +0100
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
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 f6cb954..938064f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]