[Telepathy-commits] [telepathy-salut/master] Fix checking of message type
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Thu Oct 30 12:16:20 PDT 2008
Actually assert when checks fail and set the message type
attribute to chat
---
tests/twisted/avahi/test-text-channel.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/twisted/avahi/test-text-channel.py b/tests/twisted/avahi/test-text-channel.py
index d9630ae..1eaf2e8 100644
--- a/tests/twisted/avahi/test-text-channel.py
+++ b/tests/twisted/avahi/test-text-channel.py
@@ -84,14 +84,15 @@ def test(q, bus, conn):
# connected to salut, now send a message
message = domish.Element(('', 'message'))
+ message['type'] = "chat"
message.addElement('body', content=OUTGOING_MESSAGE)
e.connection.send(message)
e = q.expect('dbus-signal', signal='Received')
- e.args[2] == handle
- e.args[3] == TEXT_MESSAGE_TYPE_NORMAL
- e.args[5] == OUTGOING_MESSAGE
+ assert e.args[2] == handle
+ assert e.args[3] == TEXT_MESSAGE_TYPE_NORMAL
+ assert e.args[5] == OUTGOING_MESSAGE
if __name__ == '__main__':
--
1.5.6.5
More information about the Telepathy-commits
mailing list