[gnome-settings-daemon] tests: Fix implementation of CanSuspend/CanHibernate
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] tests: Fix implementation of CanSuspend/CanHibernate
- Date: Tue, 17 Sep 2013 16:36:17 +0000 (UTC)
commit 33bcbdc1e7ecaa7d9fd8f0766f7e49fe9151f87f
Author: Bastien Nocera <hadess hadess net>
Date: Tue Sep 17 17:11:53 2013 +0200
tests: Fix implementation of CanSuspend/CanHibernate
Those aren't properties, they're methods!!!
tests/gsdtestcase.py | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 01df9bc..8fb84f4 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -168,14 +168,10 @@ class GSDTestCase(dbusmock.DBusTestCase):
('Suspend', 'b', '', ''),
('Hibernate', 'b', '', ''),
('Inhibit', 'ssss', 'h', 'ret = 5'),
+ ('CanSuspend', '', 's', "ret = 'yes'"),
+ ('CanHibernate', '', 's', "ret = 'no'")
], dbus_interface='org.freedesktop.DBus.Mock')
- self.obj_logind.AddProperties('',
- {
- 'CanSuspend': True,
- 'CanHibernate': False,
- })
-
# set log to nonblocking
set_nonblock(self.logind.stdout)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]