diff options
| author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-04-24 14:45:14 +0100 |
|---|---|---|
| committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-04-25 11:30:38 +0100 |
| commit | e4050f2750d2fdb5c05a7d7b9cb4030b99133f13 (patch) | |
| tree | a39833647e8ca3a078c941aef324eafd669e0cee /test/test-client.py | |
| parent | ae8014c72a7d304f20d9422009f42bc48fa8f298 (diff) | |
| download | dbus-python-e4050f2750d2fdb5c05a7d7b9cb4030b99133f13.tar.gz | |
Preparation for fallback-object support:
* Let exported methods receive the path, destination and raw message via
kwargs, as well as the sender
* Let exported signals be emitted from a variable object-path
Diffstat (limited to 'test/test-client.py')
| -rwxr-xr-x | test/test-client.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-client.py b/test/test-client.py index de180ef..11be7db 100755 --- a/test/test-client.py +++ b/test/test-client.py @@ -112,6 +112,17 @@ class TestDBusBindings(unittest.TestCase): self.assertEquals(send_val, recv_val) self.assertEquals(recv_val.variant_level, 1) + def testMethodExtraInfoKeywords(self): + print "Testing MethodExtraInfoKeywords..." + sender, path, destination, message_cls = self.iface.MethodExtraInfoKeywords() + self.assert_(sender.startswith(':')) + self.assertEquals(path, '/org/freedesktop/DBus/TestSuitePythonObject') + # we're using the "early binding" form of get_object (without + # follow_name_owner_changes), so the destination we actually sent it + # to will be the unique name + self.assert_(destination.startswith(':')) + self.assertEquals(message_cls, 'dbus.lowlevel.MethodCallMessage') + def testUtf8StringsSync(self): send_val = u'foo' recv_val = self.iface.Echo(send_val, utf8_strings=True) |
