summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-09 15:27:02 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-09 15:27:02 +0000
commite5cef62c8ed04f5842257653bc6ec70abbdd20bb (patch)
tree8a157523be4a259dbae842db49b41c5393b3666d /test
parentee11236f45c9aa354136e6e5d2ec1c4490bc6657 (diff)
downloaddbus-python-e5cef62c8ed04f5842257653bc6ec70abbdd20bb.tar.gz
dbus.Interface, dbus.ProxyObject: add get_dbus_method(), which can be used to call awkwardly-named methods like __getattr__
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-client.py b/test/test-client.py
index 5471b6b..8c4c3e2 100755
--- a/test/test-client.py
+++ b/test/test-client.py
@@ -83,6 +83,10 @@ class TestDBusBindings(unittest.TestCase):
print self.iface.Echo("dbus_interface on Interface test Passed", dbus_interface = "org.freedesktop.DBus.TestSuiteInterface")
self.assert_(True)
+ def testGetDBusMethod(self):
+ self.assertEquals(self.iface.get_dbus_method('AcceptListOfByte')('\1\2\3'), [1,2,3])
+ self.assertEquals(self.remote_object.get_dbus_method('AcceptListOfByte', dbus_interface='org.freedesktop.DBus.TestSuiteInterface')('\1\2\3'), [1,2,3])
+
def testCallingConventionOptions(self):
self.assertEquals(self.iface.AcceptListOfByte('\1\2\3'), [1,2,3])
self.assertEquals(self.iface.AcceptListOfByte('\1\2\3', byte_arrays=True), '\1\2\3')