[Telepathy-commits] [telepathy-gabble/master] jingle/test-incoming-call.py: exercise channel properties in a basic way

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:50 PDT 2008


This test is disabled, but the basic functionality has been verified.

20080721192257-53eee-3d81185633ff85f6280ada80e9405b637b1783b0.gz
---
 tests/twisted/jingle/test-incoming-call.py |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/jingle/test-incoming-call.py b/tests/twisted/jingle/test-incoming-call.py
index 0ef4b8d..38a38a5 100644
--- a/tests/twisted/jingle/test-incoming-call.py
+++ b/tests/twisted/jingle/test-incoming-call.py
@@ -68,6 +68,21 @@ 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(
+            'org.freedesktop.Telepathy.Channel',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetHandle'] == 0
+    assert future_props['TargetHandleType'] == 0
+
+    # Exercise FUTURE properties
+    future_props = media_chan.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == ''
+    assert future_props['InitiatorID'] == 'foo at bar.com'
+    assert future_props['InitiatorHandle'] == remote_handle
+
     media_chan.RemoveMembers([dbus.UInt32(1)], 'rejected')
 
     e = q.expect('stream-iq')
-- 
1.5.6.3




More information about the Telepathy-commits mailing list