summaryrefslogtreecommitdiffstats
path: root/test/python/test-service.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test-service.py')
-rwxr-xr-xtest/python/test-service.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/python/test-service.py b/test/python/test-service.py
index d5488c44..e8213805 100755
--- a/test/python/test-service.py
+++ b/test/python/test-service.py
@@ -130,6 +130,10 @@ class TestObject(dbus.service.Object, TestInterface):
except Exception, e:
error_cb(e)
+ @dbus.service.method('org.freedesktop.DBus.TestSuiteInterface', in_signature='', out_signature='s', sender_keyword='sender')
+ def WhoAmI(self, sender):
+ return sender
+
session_bus = dbus.SessionBus()
name = dbus.service.BusName("org.freedesktop.DBus.TestSuitePythonService", bus=session_bus)
object = TestObject(name)