From 26c937cb302506c0f4dd96e2a1dd98535f167696 Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Sun, 30 May 2004 05:30:09 +0000 Subject: 2004-05-30 Seth Nickell * python/dbus_bindings.pyx.in: Add support for ObjectPath type. * python/dbus.py: Refactor message handling code to a common function. * python/tests/test-client.py: * python/tests/test-server.py: Add tests that check to make sure values of all types can be echoed from a service w/o mangling. --- python/tests/test-server.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 python/tests/test-server.py (limited to 'python/tests/test-server.py') diff --git a/python/tests/test-server.py b/python/tests/test-server.py new file mode 100644 index 00000000..2af685bc --- /dev/null +++ b/python/tests/test-server.py @@ -0,0 +1,17 @@ +import dbus +import gtk + +class TestObject(dbus.Object): + def __init__(self, service): + method_list = [ self.Echo ] + dbus.Object.__init__(self, "/TestObject", method_list, service) + + def Echo(self, variable): + return variable + +session_bus = dbus.SessionBus() + +local_service = dbus.Service("org.designfu.Test", bus=session_bus) +local_object = TestObject(local_service) + +gtk.main() -- cgit