From 5d0ed9c7044da04374ef3abd49eff14ec6b285ab Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Sun, 18 Jul 2004 21:44:37 +0000 Subject: 2004-07-18 Seth Nickell * python/dbus.py: * python/dbus_bindings.pyx.in: * python/tests/test-client.py: Add dbus.ByteArray and dbus_bindings.ByteArray types so that byte streams can be passed back. Give jdahlin the heaps of credit that are so rightfully his. --- python/tests/test-client.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'python/tests/test-client.py') diff --git a/python/tests/test-client.py b/python/tests/test-client.py index 6a73cbd2..5dc6e20c 100644 --- a/python/tests/test-client.py +++ b/python/tests/test-client.py @@ -1,5 +1,4 @@ import dbus -import dbus_bindings def ensure_same(expected, received): if type(received) != type(expected): @@ -56,8 +55,8 @@ TestEcho(chr(120)) TestEcho(10) TestEcho(39.5) TestEcho("HelloWorld") -TestEcho(dbus_bindings.ObjectPath("/test/path")) - +TestEcho(dbus.ObjectPath("/test/path")) +TestEcho(dbus.ByteArray("blahblahblah")) string_list = [] for i in range(200): @@ -69,7 +68,7 @@ TestEchoList(int_list) path_list = [] for i in range(200): - path_list.append(dbus_bindings.ObjectPath("/some/object/path" + str(i))) + path_list.append(dbus.ObjectPath("/some/object/path" + str(i))) TestEchoList(path_list) double_list = [] -- cgit