[telepathy-gabble/master] Unrace jingle/stun-server.py
Will Thompson
will.thompson at collabora.co.uk
Thu Jun 25 07:07:54 PDT 2009
---
tests/twisted/jingle/stun-server.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/twisted/jingle/stun-server.py b/tests/twisted/jingle/stun-server.py
index b6c44fe..2ac0532 100644
--- a/tests/twisted/jingle/stun-server.py
+++ b/tests/twisted/jingle/stun-server.py
@@ -168,13 +168,13 @@ def test(q, bus, conn, stream,
media_chan.RemoveMembers([dbus.UInt32(1)], 'rejected')
- iq, signal = q.expect_many(
- EventPattern('stream-iq'),
+ q.expect_many(
+ EventPattern('stream-iq',
+ predicate=lambda e: e.query is not None and
+ e.query.name == 'jingle' and
+ e.query['action'] == 'session-terminate'),
EventPattern('dbus-signal', signal='Closed'),
)
- assert iq.query.name == 'jingle'
- assert iq.query['action'] == 'session-terminate'
-
# Tests completed, close the connection
conn.Disconnect()
--
1.5.6.5
More information about the telepathy-commits
mailing list