[telepathy-gabble/master] offer-private-stream-tube.py: use new set_up_echo

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Apr 29 10:45:17 PDT 2009


---
 tests/twisted/tubes/offer-private-stream-tube.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/tubes/offer-private-stream-tube.py b/tests/twisted/tubes/offer-private-stream-tube.py
index b68fb60..6d91293 100644
--- a/tests/twisted/tubes/offer-private-stream-tube.py
+++ b/tests/twisted/tubes/offer-private-stream-tube.py
@@ -41,8 +41,8 @@ def contact_offer_dbus_tube(bytestream, tube_id):
 
 def test(q, bus, conn, stream, bytestream_cls,
         address_type, access_control, access_control_param):
-    echo_path = t.set_up_echo("")
-    echo2_path = t.set_up_echo("2")
+    address1 = t.set_up_echo(q, address_type)
+    address2 = t.set_up_echo(q, address_type)
 
     t.check_conn_properties(q, conn)
 
@@ -180,7 +180,7 @@ def test(q, bus, conn, stream, bytestream_cls,
 
     # Create another tube using old API
     call_async(q, tubes_iface, 'OfferStreamTube',
-        'echo', sample_parameters, address_type, dbus.ByteArray(echo_path),
+        'echo', sample_parameters, address_type, address1,
         access_control, access_control_param)
 
     event, return_event, new_chan, new_chans = q.expect_many(
@@ -261,7 +261,7 @@ def test(q, bus, conn, stream, bytestream_cls,
 
     # Offer the first tube created (new API)
     call_async(q, new_tube_iface, 'Offer',
-        address_type, dbus.ByteArray(echo2_path), access_control,
+        address_type, address2, access_control,
         access_control_param, new_sample_parameters)
 
     msg_event, new_tube_sig, state_event = q.expect_many(
-- 
1.5.6.5




More information about the telepathy-commits mailing list