[Telepathy-commits] [telepathy-gabble/master] Add a test for org.freedesktop.Telepathy.Channel.Type.StreamTube

Alban Crequy alban.crequy at collabora.co.uk
Mon Nov 3 11:20:55 PST 2008


20080815182721-a41c0-b1b59d993e50586cf9049a1ee31176f4c4bf976e.gz
---
 tests/twisted/tubes/test-si-tubes.py |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/tubes/test-si-tubes.py b/tests/twisted/tubes/test-si-tubes.py
index 43045b8..d974269 100644
--- a/tests/twisted/tubes/test-si-tubes.py
+++ b/tests/twisted/tubes/test-si-tubes.py
@@ -208,6 +208,23 @@ def test(q, bus, conn, stream):
                       'u': ('uint', '123'),
                      }
 
+    # We offered a tube using the old tube API. Check the new tube API works
+    assert len(filter(lambda x:
+                  x[1] == "org.freedesktop.Telepathy.Channel.Type.Tubes",
+                  conn.ListChannels())) == 1
+    assert len(filter(lambda x:
+                  x[1] == "org.freedesktop.Telepathy.Channel.Type.StreamTube",
+                  conn.ListChannels())) == 1
+
+    #channels = filter(lambda x: x[1] != "org.freedesktop.Telepathy.Channel.Type.StreamTube.DRAFT", conn.ListChannels())
+    #print str(len(channels))
+    #print str(channels)
+    #assert len(channels) == 1
+
+    #tube_chan = bus.get_object(conn.bus_name, chan_path)
+    #tube_iface = dbus.Interface(tubes_chan,
+    #    tp_name_prefix + '.Channel.Type.Tubes')
+
     # The CM is the server, so fake a client wanting to talk to it
     iq = IQ(stream, 'set')
     iq['to'] = 'test at localhost/Resource'
-- 
1.5.6.5




More information about the Telepathy-commits mailing list