[Telepathy-commits] [telepathy-gabble/master] jingle/test-outgoing-call*.py: exercise future properties

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


20080721191732-53eee-069be7f7b04d6fd0742415b7fde9aa267b7bbedb.gz
---
 .../jingle/test-outgoing-call-deprecated.py        |    8 ++++++++
 .../jingle/test-outgoing-call-deprecated2.py       |    8 ++++++++
 tests/twisted/jingle/test-outgoing-call.py         |    8 ++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/jingle/test-outgoing-call-deprecated.py b/tests/twisted/jingle/test-outgoing-call-deprecated.py
index fa3381f..485f815 100644
--- a/tests/twisted/jingle/test-outgoing-call-deprecated.py
+++ b/tests/twisted/jingle/test-outgoing-call-deprecated.py
@@ -49,6 +49,14 @@ def test(q, bus, conn, stream):
     media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
     group_iface = make_channel_proxy(conn, path, 'Channel.Interface.Group')
 
+    # Exercise FUTURE properties
+    future_props = group_iface.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == ''
+    assert future_props['InitiatorID'] == 'test at localhost'
+    assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+
     # S-E gets notified about new session handler, and calls Ready on it
     e = q.expect('dbus-signal', signal='NewSessionHandler')
     assert e.args[1] == 'rtp'
diff --git a/tests/twisted/jingle/test-outgoing-call-deprecated2.py b/tests/twisted/jingle/test-outgoing-call-deprecated2.py
index fbe51ec..da41b91 100644
--- a/tests/twisted/jingle/test-outgoing-call-deprecated2.py
+++ b/tests/twisted/jingle/test-outgoing-call-deprecated2.py
@@ -49,6 +49,14 @@ def test(q, bus, conn, stream):
     media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
     group_iface = make_channel_proxy(conn, path, 'Channel.Interface.Group')
 
+    # Exercise FUTURE properties
+    future_props = group_iface.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == ''
+    assert future_props['InitiatorID'] == 'test at localhost'
+    assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+
     group_iface.AddMembers([handle], 'deprecated API')
 
     # S-E gets notified about new session handler, and calls Ready on it
diff --git a/tests/twisted/jingle/test-outgoing-call.py b/tests/twisted/jingle/test-outgoing-call.py
index a1f1f02..6d5dcdc 100644
--- a/tests/twisted/jingle/test-outgoing-call.py
+++ b/tests/twisted/jingle/test-outgoing-call.py
@@ -74,6 +74,14 @@ def test(q, bus, conn, stream):
             channel_props.get('Interfaces', ()), \
             channel_props.get('Interfaces')
 
+    # Exercise FUTURE properties
+    future_props = group_iface.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == ''
+    assert future_props['InitiatorID'] == 'test at localhost'
+    assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+
     # Exercise Group Properties from spec 0.17.6 (in a basic way)
     group_props = group_iface.GetAll(
             'org.freedesktop.Telepathy.Channel.Interface.Group',
-- 
1.5.6.3




More information about the Telepathy-commits mailing list