diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-18 17:36:00 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-18 17:36:00 +0200 |
commit | fa1fb8404f7e598723b1b0e9d594bbc886681e6f (patch) | |
tree | e3e44d245bcacc0d8e91fab55f66728066f4105d | |
parent | b90ade819ab5debeb92d1b646ab418df9faba4d9 (diff) | |
download | upower-fa1fb8404f7e598723b1b0e9d594bbc886681e6f.tar.gz |
linux: Add helper to get DisplayDevice property
In the integration tests.
-rwxr-xr-x | src/linux/integration-test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/integration-test b/src/linux/integration-test index 096e6d7..413d924 100755 --- a/src/linux/integration-test +++ b/src/linux/integration-test @@ -174,6 +174,14 @@ class Tests(unittest.TestCase): '/org/freedesktop/UPower', 'org.freedesktop.DBus.Properties', None) return proxy.Get('(ss)', UP, name) + def get_dbus_display_property(self, name): + '''Get property value from display device D-Bus interface.''' + + proxy = Gio.DBusProxy.new_sync( + self.dbus, Gio.DBusProxyFlags.DO_NOT_AUTO_START, None, UP, + UP_DISPLAY_OBJECT_PATH, 'org.freedesktop.DBus.Properties', None) + return proxy.Get('(ss)', UP, name) + def get_dbus_dev_property(self, device, name): '''Get property value from an upower device D-Bus path.''' |