[Telepathy-commits] [telepathy-salut/master] test-two-muc-stream-tubes.py: use new tube API

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Mar 11 09:15:33 PDT 2009


---
 tests/twisted/avahi/test-two-muc-stream-tubes.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/avahi/test-two-muc-stream-tubes.py b/tests/twisted/avahi/test-two-muc-stream-tubes.py
index e5826d0..640c9e3 100644
--- a/tests/twisted/avahi/test-two-muc-stream-tubes.py
+++ b/tests/twisted/avahi/test-two-muc-stream-tubes.py
@@ -274,7 +274,7 @@ def test(q, bus, conn):
 
     assert ({CHANNEL_TYPE: CHANNEL_TYPE_STREAM_TUBE,
              TARGET_HANDLE_TYPE: HT_ROOM},
-         [TARGET_HANDLE, TARGET_ID, TUBE_PARAMETERS, STREAM_TUBE_SERVICE]
+         [TARGET_HANDLE, TARGET_ID, STREAM_TUBE_SERVICE]
         ) in properties.get('RequestableChannelClasses'),\
                  properties['RequestableChannelClasses']
 
@@ -285,8 +285,7 @@ def test(q, bus, conn):
         CHANNEL_TYPE: CHANNEL_TYPE_STREAM_TUBE,
         TARGET_HANDLE_TYPE: HT_ROOM,
         TARGET_ID: muc2_name,
-        STREAM_TUBE_SERVICE: 'test',
-        TUBE_PARAMETERS: sample_parameters})
+        STREAM_TUBE_SERVICE: 'test'})
 
     e = q.expect('dbus-signal', signal='NewChannels')
     channels = e.args[0]
@@ -327,7 +326,7 @@ def test(q, bus, conn):
     assert state == TUBE_CHANNEL_STATE_NOT_OFFERED
 
     call_async(q, contact1_stream_tube, 'OfferStreamTube', SOCKET_ADDRESS_TYPE_UNIX,
-            dbus.ByteArray(server_socket_address), SOCKET_ACCESS_CONTROL_LOCALHOST, "")
+            dbus.ByteArray(server_socket_address), SOCKET_ACCESS_CONTROL_LOCALHOST, "", sample_parameters)
 
     q.expect_many(
         EventPattern('dbus-signal', signal='TubeChannelStateChanged', args=[TUBE_CHANNEL_STATE_OPEN]),
-- 
1.5.6.5




More information about the telepathy-commits mailing list