summaryrefslogtreecommitdiff
path: root/tests/twisted/avahi/muc-invite.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/muc-invite.py
parent822ddd064c266345ab4fe19c4b574a4cd29d7159 (diff)
downloadtelepathy-salut-82162a775b73ec8fc6bac7ff2c3efa7592554916.tar.gz
Port to telepathy-glib-1
Diffstat (limited to 'tests/twisted/avahi/muc-invite.py')
-rw-r--r--tests/twisted/avahi/muc-invite.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/twisted/avahi/muc-invite.py b/tests/twisted/avahi/muc-invite.py
index abfc8f28..6f0a6116 100644
--- a/tests/twisted/avahi/muc-invite.py
+++ b/tests/twisted/avahi/muc-invite.py
@@ -80,10 +80,9 @@ def test(q, bus, conn):
channel_group = make_channel_proxy(conn, path, "Channel.Interface.Group")
# check channel properties
- # org.freedesktop.Telepathy.Channel D-Bus properties
+ # im.telepathy1.Channel D-Bus properties
assert props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_TEXT
assertContains(cs.CHANNEL_IFACE_GROUP, props[cs.INTERFACES])
- assertContains(cs.CHANNEL_IFACE_MESSAGES, props[cs.INTERFACES])
assert props[cs.TARGET_ID] == 'my-room'
assert props[cs.TARGET_HANDLE_TYPE] == HT_ROOM
assert props[cs.REQUESTED] == False
@@ -92,14 +91,14 @@ def test(q, bus, conn):
# we are added to local pending
e = q.expect('dbus-signal', signal='MembersChanged')
- msg, added, removed, lp, rp, actor, reason = e.args
- assert msg == 'Inviting to this room'
+ added, removed, lp, rp, details = e.args
+ assert details['message'] == 'Inviting to this room'
assert added == []
assert removed == []
assert lp == [self_handle]
assert rp == []
- assert actor == handle
- assert reason == 4 # invited
+ assert details['actor'] == handle
+ assert details['change-reason'] == 4 # invited
# TODO: join the muc, check if we are added to remote-pending and then
# to members. This would need some tweak in Salut and/or the test framework