dbus/python/tests test-client.py,1.4,1.5

Seth Nickell seth at freedesktop.org
Sun Jul 18 14:44:39 PDT 2004


Update of /cvs/dbus/dbus/python/tests
In directory pdx:/tmp/cvs-serv18434/python/tests

Modified Files:
	test-client.py 
Log Message:
2004-07-18  Seth Nickell  <seth at gnome.org>

	* 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.


Index: test-client.py
===================================================================
RCS file: /cvs/dbus/dbus/python/tests/test-client.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test-client.py	1 Jun 2004 06:13:31 -0000	1.4
+++ test-client.py	18 Jul 2004 21:44:37 -0000	1.5
@@ -1,5 +1,4 @@
 import dbus
-import dbus_bindings
 
 def ensure_same(expected, received):
     if type(received) != type(expected):
@@ -56,8 +55,8 @@
 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 @@
 
 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 = []



More information about the dbus-commit mailing list