[Telepathy-commits] [telepathy-salut/master] test-roomlist.py: add few comments
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Nov 25 03:17:17 PST 2008
---
tests/twisted/avahi/test-roomlist.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/avahi/test-roomlist.py b/tests/twisted/avahi/test-roomlist.py
index 0eb42af..6c8cc09 100644
--- a/tests/twisted/avahi/test-roomlist.py
+++ b/tests/twisted/avahi/test-roomlist.py
@@ -19,6 +19,7 @@ def test(q, bus, conn):
q.expect('dbus-signal', signal='StatusChanged', args=[0L, 0L])
+ # check if we can request roomlist channels
properties = conn.GetAll(
tp_name_prefix + '.Connection.Interface.Requests',
dbus_interface='org.freedesktop.DBus.Properties')
@@ -89,6 +90,8 @@ def test(q, bus, conn):
requestotron = dbus.Interface(conn,
tp_name_prefix + '.Connection.Interface.Requests')
+
+ # create roomlist channel using new API
call_async(q, requestotron, 'CreateChannel',
{ tp_name_prefix + '.Channel.ChannelType':
tp_name_prefix + '.Channel.Type.RoomList',
@@ -132,6 +135,7 @@ def test(q, bus, conn):
# FIXME: actually list the rooms!
+ # ensure roomlist channel
call_async(q, requestotron, 'EnsureChannel',
{ tp_name_prefix + '.Channel.ChannelType':
tp_name_prefix + '.Channel.Type.RoomList',
@@ -144,7 +148,6 @@ def test(q, bus, conn):
assert not yours
assert ensured_path == path2, (ensured_path, path2)
-
conn.Disconnect()
q.expect_many(
--
1.5.6.5
More information about the Telepathy-commits
mailing list