[telepathy-gabble/master] Unrace jingle/test-outgoing-call-requestotron.py
Will Thompson
will.thompson at collabora.co.uk
Fri Apr 10 07:26:11 PDT 2009
---
.../jingle/test-outgoing-call-requestotron.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/twisted/jingle/test-outgoing-call-requestotron.py b/tests/twisted/jingle/test-outgoing-call-requestotron.py
index 538c222..0274ee2 100644
--- a/tests/twisted/jingle/test-outgoing-call-requestotron.py
+++ b/tests/twisted/jingle/test-outgoing-call-requestotron.py
@@ -162,12 +162,13 @@ def test(q, bus, conn, stream):
# When we actually send XML to the peer, they should pop up in remote
# pending.
e, _ = q.expect_many(
- EventPattern('stream-iq'),
+ EventPattern('stream-iq', predicate=lambda e:
+ e.query is not None and e.query.name == 'jingle' and \
+ e.query['action'] == 'session-initiate'
+ ),
EventPattern('dbus-signal', signal='MembersChanged',
args=["", [], [], [], [handle], self_handle, cs.GC_REASON_INVITED]),
)
- assertEquals('jingle', e.query.name)
- assertEquals('session-initiate', e.query['action'])
stream.send(gabbletest.make_result_iq(stream, e.stanza))
# Check the Group interface's properties again!
--
1.5.6.5
More information about the telepathy-commits
mailing list