[Telepathy-commits] [telepathy-gabble/master] test-incoming-call.py: Gabble now sets the caller as actor in MembersChanged when our self handle is moving to local-pending

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Aug 19 10:52:17 PDT 2008


20080512104258-7fe3f-0c9440c4950b9aa420df12f55fa5f1f29dda69e9.gz
---
 tests/twisted/jingle/test-incoming-call.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/jingle/test-incoming-call.py b/tests/twisted/jingle/test-incoming-call.py
index 004285d..16ea6d6 100644
--- a/tests/twisted/jingle/test-incoming-call.py
+++ b/tests/twisted/jingle/test-incoming-call.py
@@ -39,6 +39,8 @@ def test(q, bus, conn, stream):
 
     jt.send_remote_disco_reply(event.stanza)
 
+    remote_handle = conn.RequestHandles(1, ["foo at bar.com/Foo"])[0]
+
     # SCENARIO 1 - We reject incoming call
 
     # Remote end calls us
@@ -51,9 +53,9 @@ def test(q, bus, conn, stream):
     session_handler = make_channel_proxy(conn, e.args[0], 'Media.SessionHandler')
     session_handler.Ready()
 
-    # We're pending
+    # We're pending because of remote_handle
     e = q.expect('dbus-signal', signal='MembersChanged',
-             args=[u'', [], [], [1L], [], 0, 0])
+             args=[u'', [], [], [1L], [], remote_handle, 0])
 
     media_chan = make_channel_proxy(conn, tp_path_prefix + e.path, 'Channel.Interface.Group')
 
@@ -77,9 +79,9 @@ def test(q, bus, conn, stream):
     session_handler = make_channel_proxy(conn, e.args[0], 'Media.SessionHandler')
     session_handler.Ready()
 
-    # We're pending
+    # We're pending because of remote_handle
     e = q.expect('dbus-signal', signal='MembersChanged',
-             args=[u'', [], [], [1L], [], 0, 0])
+             args=[u'', [], [], [1L], [], remote_handle, 0])
 
     media_chan = make_channel_proxy(conn, tp_path_prefix + e.path, 'Channel.Interface.Group')
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list