summaryrefslogtreecommitdiff
path: root/tests/twisted/avahi/roomlist.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-09-20 17:19:43 -0400
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-15 15:42:31 -0400
commit82162a775b73ec8fc6bac7ff2c3efa7592554916 (patch)
treee0a8852722e3976b8b99743bc227cc2889ceca03 /tests/twisted/avahi/roomlist.py
parent822ddd064c266345ab4fe19c4b574a4cd29d7159 (diff)
downloadtelepathy-salut-82162a775b73ec8fc6bac7ff2c3efa7592554916.tar.gz
Port to telepathy-glib-1
Diffstat (limited to 'tests/twisted/avahi/roomlist.py')
-rw-r--r--tests/twisted/avahi/roomlist.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/twisted/avahi/roomlist.py b/tests/twisted/avahi/roomlist.py
index 7e84a1be..21fb1824 100644
--- a/tests/twisted/avahi/roomlist.py
+++ b/tests/twisted/avahi/roomlist.py
@@ -8,7 +8,7 @@ import avahitest
from twisted.words.xish import domish
-from saluttest import exec_test, wait_for_contact_list
+from saluttest import exec_test
from servicetest import call_async, EventPattern, \
tp_name_prefix, tp_path_prefix, wrap_channel
import constants as cs
@@ -20,14 +20,11 @@ def test(q, bus, conn):
q.expect('dbus-signal', signal='StatusChanged', args=[0L, 0L])
- # FIXME: this is a hack to be sure to have all the contact list channels
- # announced so they won't interfere with the roomlist ones announces.
- wait_for_contact_list(q, conn)
-
# check if we can request roomlist channels
properties = conn.GetAll(
tp_name_prefix + '.Connection.Interface.Requests',
dbus_interface='org.freedesktop.DBus.Properties')
+
assert ({tp_name_prefix + '.Channel.ChannelType':
cs.CHANNEL_TYPE_ROOM_LIST,
tp_name_prefix + '.Channel.TargetHandleType': 0,
@@ -51,7 +48,7 @@ def test(q, bus, conn):
EventPattern('dbus-signal', signal='NewChannels'),
)
path2 = ret.value[0]
- chan2 = wrap_channel(bus.get_object(conn.bus_name, path2), "RoomList")
+ chan2 = wrap_channel(bus.get_object(conn.bus_name, path2), "RoomList1")
props = ret.value[1]
assert props[tp_name_prefix + '.Channel.ChannelType'] ==\
@@ -64,7 +61,7 @@ def test(q, bus, conn):
== conn.Properties.Get(cs.CONN, "SelfHandle")
assert props[tp_name_prefix + '.Channel.InitiatorID'] \
== self_name
- assert props[tp_name_prefix + '.Channel.Type.RoomList.Server'] == ''
+ assert props[tp_name_prefix + '.Channel.Type.RoomList1.Server'] == ''
assert new_sig.args[0][0][0] == path2
assert new_sig.args[0][0][1] == props