summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-08-06 11:22:30 +0200
committerBastien Nocera <hadess@hadess.net>2013-08-06 11:49:06 +0200
commit099b16dfc9b50c06be2751dcfb7dc1dba8249dba (patch)
tree16c28a58c08cd5f379375c97b9c0f2e3392738ca /tests
parent0c5fd82a6ce25abca9a9d7018889bad8fc1c6057 (diff)
downloadgnome-settings-daemon-099b16dfc9b50c06be2751dcfb7dc1dba8249dba.tar.gz
tests: Add support for CanHibernate/CanSuspend
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 23a51416..2f8d1de4 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -170,6 +170,12 @@ class GSDTestCase(dbusmock.DBusTestCase):
('Inhibit', 'ssss', 'h', 'ret = 5'),
], dbus_interface='org.freedesktop.DBus.Mock')
+ self.obj_logind.AddProperties('',
+ {
+ 'CanSuspend': True,
+ 'CanHibernate': False,
+ })
+
# set log to nonblocking
set_nonblock(self.logind.stdout)