diff options
author | Robert McQueen <robot101@debian.org> | 2005-11-15 17:19:19 +0000 |
---|---|---|
committer | Robert McQueen <robot101@debian.org> | 2005-11-15 17:19:19 +0000 |
commit | f85de0cf3a6e762cd42d21940508e6fc21b92b83 (patch) | |
tree | ad3bd09de6aaa71139fcaad63f1a7e7776f31ded /test | |
parent | 6dc298fc178a3cb4a1e261ffb3c4059a40cb30c1 (diff) |
2005-11-15 Robert McQueen <robot101@debian.org>
* bus/driver.c, bus/services.c, bus/services.h: Add a ReleaseName
method to org.freedesktop.DBus to release a bus name or give up
waiting in the queue for it.
* dbus/dbus-bus.c, dbus/dbus-bus.h, dbus/dbus-shared.h: Add a
dbus_bus_release_name method to send the ReleaseName method calls.
Add constants for the return values to dbus/dbus-shared.h.
* doc/dbus-specification.xml: Document the new ReleaseName method
in the specification.
* python/dbus_bindings.pyx: Add a low-level python binding for the
release name method.
* python/exceptions.py, python/service.py: Make freeing BusName
objects release the name. Add a NameExistsException, and fix a
bug with creating UnknownMethodException.
* test/python/test-client.py: Add tests for freeing BusName
objects causing names to be released.
Diffstat (limited to 'test')
-rwxr-xr-x | test/python/test-client.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/python/test-client.py b/test/python/test-client.py index ab70350..e972f44 100755 --- a/test/python/test-client.py +++ b/test/python/test-client.py @@ -252,8 +252,17 @@ class TestDBusBindings(unittest.TestCase): else: names[name] = busname + del busname + print + del names + + bus = dbus.Bus() + ret = dbus.dbus_bindings.bus_name_has_owner(bus._connection, 'org.freedesktop.DBus.Python.TestName') + self.assert_(not ret, 'deleting reference failed to release BusName org.freedesktop.DBus.Python.TestName') + + class TestDBusPythonToGLibBindings(unittest.TestCase): def setUp(self): self.bus = dbus.SessionBus() |