summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-09-17 17:11:53 +0200
committerBastien Nocera <hadess@hadess.net>2013-09-17 18:35:46 +0200
commit33bcbdc1e7ecaa7d9fd8f0766f7e49fe9151f87f (patch)
tree62c625498ac314ca00972356e7cbaea30472c102 /tests
parent9677668d62c487cbcd5c31a6b4c95cb0ae68f77c (diff)
downloadgnome-settings-daemon-33bcbdc1e7ecaa7d9fd8f0766f7e49fe9151f87f.tar.gz
tests: Fix implementation of CanSuspend/CanHibernate
Those aren't properties, they're methods!!!
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 01df9bc8..8fb84f40 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)