[Telepathy-commits] [telepathy-gabble/master] jingle/test-outgoing-call.py: assert that we've ended the call

Senko Rasic senko.rasic at collabora.co.uk
Thu Jan 29 07:44:16 PST 2009


---
 tests/twisted/jingle/test-outgoing-call.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/jingle/test-outgoing-call.py b/tests/twisted/jingle/test-outgoing-call.py
index 8e570c7..4aff289 100644
--- a/tests/twisted/jingle/test-outgoing-call.py
+++ b/tests/twisted/jingle/test-outgoing-call.py
@@ -151,10 +151,17 @@ def test(q, bus, conn, stream):
 
     q.expect('stream-iq', iq_type='result')
 
+    # Call accepted
+    q.expect('dbus-signal', signal='MembersChanged')
+
     # Time passes ... afterwards we close the chan
 
     group_iface.RemoveMembers([dbus.UInt32(1)], 'closed')
 
+    # Check that we're the actor
+    e = q.expect('dbus-signal', signal='MembersChanged')
+    assert e.args[5] == self_handle
+
     # Test completed, close the connection
 
     e = q.expect('dbus-signal', signal='Close') #XXX - match against the path
-- 
1.5.6.5



More information about the telepathy-commits mailing list