diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2013-09-20 17:19:43 -0400 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-15 15:42:31 -0400 |
commit | 82162a775b73ec8fc6bac7ff2c3efa7592554916 (patch) | |
tree | e0a8852722e3976b8b99743bc227cc2889ceca03 /tests/twisted/avahi/ichat-incoming-msg.py | |
parent | 822ddd064c266345ab4fe19c4b574a4cd29d7159 (diff) | |
download | telepathy-salut-82162a775b73ec8fc6bac7ff2c3efa7592554916.tar.gz |
Port to telepathy-glib-1
Diffstat (limited to 'tests/twisted/avahi/ichat-incoming-msg.py')
-rw-r--r-- | tests/twisted/avahi/ichat-incoming-msg.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/twisted/avahi/ichat-incoming-msg.py b/tests/twisted/avahi/ichat-incoming-msg.py index 71812230..bbf3bf06 100644 --- a/tests/twisted/avahi/ichat-incoming-msg.py +++ b/tests/twisted/avahi/ichat-incoming-msg.py @@ -53,10 +53,12 @@ def test(q, bus, conn): boddy = msg.addElement('body', content='hi') outbound.send(msg) - e = q.expect('dbus-signal', signal='Received') - assert e.args[2] == handle - assert e.args[3] == cs.MT_NORMAL - assert e.args[5] == "hi" + e = q.expect('dbus-signal', signal='MessageReceived') + assert len(e.args[0]) == 2 + assert e.args[0][0]['message-sender-id'] == contact_name + assert e.args[0][0]['message-sender'] == handle + assert e.args[0][0]['message-type'] == cs.MT_NORMAL + assert e.args[0][1]['content'] == "hi" if __name__ == '__main__': skip_if_another_llxmpp() |