[Telepathy-commits] [telepathy-salut/master] test-offer-private-stream-tube: use new API to offer the tube

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


---
 .../avahi/test-offer-private-stream-tube.py        |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/tests/twisted/avahi/test-offer-private-stream-tube.py b/tests/twisted/avahi/test-offer-private-stream-tube.py
index 80d3bc5..c81f7a4 100644
--- a/tests/twisted/avahi/test-offer-private-stream-tube.py
+++ b/tests/twisted/avahi/test-offer-private-stream-tube.py
@@ -315,15 +315,14 @@ def test(q, bus, conn):
     check_channel_properties(q, bus, conn, tube_channel, "StreamTube.DRAFT",
             handle, contact_name, 3)
 
-    tube_id = tubes_channel.OfferStreamTube("http", sample_parameters,
-            SOCKET_ADDRESS_TYPE_UNIX, dbus.ByteArray(server_socket_address),
+    tube_channel.OfferStreamTube(SOCKET_ADDRESS_TYPE_UNIX, dbus.ByteArray(server_socket_address),
             SOCKET_ACCESS_CONTROL_LOCALHOST, "")
 
     e = q.expect('stream-iq')
     iq_tube = xpath.queryForNodes('/iq/tube', e.stanza)[0]
     transport = xpath.queryForNodes('/iq/tube/transport', e.stanza)[0]
     assert iq_tube.attributes['type'] == 'stream'
-    assert iq_tube.attributes['service'] == 'http', \
+    assert iq_tube.attributes['service'] == 'newecho', \
         iq_tube.attributes['service']
     assert iq_tube.attributes['id'] is not None
     port = transport.attributes['port']
@@ -338,11 +337,7 @@ def test(q, bus, conn):
     for node in parameter_nodes:
         assert node['name'] not in params
         params[node['name']] = (node['type'], str(node))
-    assert params == {'ay': ('bytes', 'aGVsbG8='),
-                      's': ('str', 'hello'),
-                      'i': ('int', '-123'),
-                      'u': ('uint', '123'),
-                     }, params
+    assert params == {'foo': ('str', 'bar')}, params
 
     # find the right host/IP address because Salut checks it
     self_handle = conn.GetSelfHandle()
-- 
1.5.6.5




More information about the telepathy-commits mailing list