summaryrefslogtreecommitdiffstats
path: root/test/python/test-service.py
Commit message (Collapse)AuthorAgeFilesLines
* 2005-10-29 Robert McQueen <robot101@debian.org>Robert McQueen2005-10-291-0/+36
| | | | | | | | | | | | | | | | | | | | | | | * python/decorators.py: Add optional arguments to the method and signal decorators to allow you to specify the signature of arguments and return values. Preserve the doc strings of signal functions in the decorated version, for pydoc and friends. * python/dbus_bindings.pyx, python/proxies.py: Replace the parse_signature_block function with an iterable dbus.Signature() type. Fix a bug in MessageIter.append_strict where you could append anything by claiming it was a string. * python/service.py: Use the out_signature decoration on methods to marshal return values, meaning you no longer require dbus.Array() or dbus.Dictionary() to indicate the type when returning empty arrays or dictionaries. Fix a bug where exceptions which are defined in __main__ are not turned into error replies. * test/python/test-client.py, test/python/test-service.py: Add test for correct marshalling of return values according to out_signature. Fix a bug in the async call test where the error_handler is missing a self argument.
* * python/dbus_bindings.pyx (MessageIter::append_strict): check forJohn (J5) Palmieri2005-10-141-0/+9
| | | | | | | | | | | | | | | | STRUCT_BEGIN not TYPE_STRUCT in indicate we are marshalling a struct * python/service.py (Object::_message_cb): handle exceptions correctly by sending them over the wire to the calling app. This makes sure the client returns immediately instead of waiting the 15 seconds to timeout. * test/python/test-client.py (TestDBusBindings::testBenchmarkIntrospect): Add a test to benchmark how long it takes to introspect a service and call a method which returns a large element (pretty fast) * test/python/test-service.py (TestObject::GetComplexArray): new test method which pushes a lot of data
* * s/Message(_create=0)/EmptyMessage everywhere elseJohn (J5) Palmieri2005-08-261-1/+1
| | | | | | * test/python/test-{server|client}.py: add the python/.libs directory to the lookup path so dbus_bindings and dbus_glib_bindings don't get picked up from the system
* * test/python: Add python regression testJohn (J5) Palmieri2005-08-251-0/+34
* configure.in: Add test/python/Makefile * test/Makefile.am: Add the python directory to SUBDIRS