[Telepathy-commits] [telepathy-gabble/master] Incoming calls now have non-0 TargetHandle; fix tests accordingly

Will Thompson will.thompson at collabora.co.uk
Tue Sep 23 02:46:24 PDT 2008


---
 tests/twisted/jingle/test-incoming-call-reject.py |    6 +++---
 tests/twisted/jingle/test-incoming-call.py        |    7 ++++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/twisted/jingle/test-incoming-call-reject.py b/tests/twisted/jingle/test-incoming-call-reject.py
index 127782e..2db0a5e 100644
--- a/tests/twisted/jingle/test-incoming-call-reject.py
+++ b/tests/twisted/jingle/test-incoming-call-reject.py
@@ -65,9 +65,9 @@ def test(q, bus, conn, stream):
     channel_props = media_chan.GetAll(
             'org.freedesktop.Telepathy.Channel',
             dbus_interface='org.freedesktop.DBus.Properties')
-    assert channel_props['TargetHandle'] == 0
-    assert channel_props['TargetHandleType'] == 0
-    assert channel_props['TargetID'] == ''
+    assert channel_props['TargetHandle'] == remote_handle
+    assert channel_props['TargetHandleType'] == 1
+    assert channel_props['TargetID'] == 'foo at bar.com'
 
     # Exercise FUTURE properties
     future_props = media_chan.GetAll(
diff --git a/tests/twisted/jingle/test-incoming-call.py b/tests/twisted/jingle/test-incoming-call.py
index 456da01..b43d335 100644
--- a/tests/twisted/jingle/test-incoming-call.py
+++ b/tests/twisted/jingle/test-incoming-call.py
@@ -67,11 +67,12 @@ def test(q, bus, conn, stream):
     media_chan = make_channel_proxy(conn, tp_path_prefix + e.path, 'Channel.Interface.Group')
 
     # Exercise channel properties
-    future_props = media_chan.GetAll(
+    channel_props = media_chan.GetAll(
             'org.freedesktop.Telepathy.Channel',
             dbus_interface='org.freedesktop.DBus.Properties')
-    assert future_props['TargetHandle'] == 0
-    assert future_props['TargetHandleType'] == 0
+    assert channel_props['TargetHandle'] == remote_handle
+    assert channel_props['TargetHandleType'] == 1
+    assert channel_props['TargetID'] == 'foo at bar.com'
 
     # Exercise FUTURE properties
     future_props = media_chan.GetAll(
-- 
1.5.6.5




More information about the Telepathy-commits mailing list