[Telepathy-commits] [telepathy-gabble/master] roster/test-roster.py, roster/test-roster-subscribe.py: exercise future properties

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


20080722105034-53eee-7833ae92bb25c66a45f8c49bb12aa5791aa44d64.gz
---
 tests/twisted/roster/groups.py      |    7 +++++++
 tests/twisted/roster/test-roster.py |    8 ++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/roster/groups.py b/tests/twisted/roster/groups.py
index 419170d..47c4653 100644
--- a/tests/twisted/roster/groups.py
+++ b/tests/twisted/roster/groups.py
@@ -37,6 +37,13 @@ def _expect_group_channel(q, bus, conn, name, contacts):
     inspected = conn.InspectHandles(1, group_iface.GetMembers())
     assert inspected == contacts, (inspected, contacts)
 
+    future_props = chan.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == name
+    assert future_props['InitiatorID'] == ''
+    assert future_props['InitiatorHandle'] == 0
+
 def test(q, bus, conn, stream):
     conn.Connect()
     # q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
diff --git a/tests/twisted/roster/test-roster.py b/tests/twisted/roster/test-roster.py
index dca02c7..bfb67cd 100644
--- a/tests/twisted/roster/test-roster.py
+++ b/tests/twisted/roster/test-roster.py
@@ -34,6 +34,14 @@ def _expect_contact_list_channel(q, bus, conn, name, contacts):
             channel_props.get('Interfaces', ()), \
             channel_props.get('Interfaces')
 
+    # Exercise FUTURE properties
+    future_props = chan.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == name
+    assert future_props['InitiatorID'] == ''
+    assert future_props['InitiatorHandle'] == 0
+
     # Exercise Group Properties from spec 0.17.6 (in a basic way)
     group_props = chan.GetAll(
             'org.freedesktop.Telepathy.Channel.Interface.Group',
-- 
1.5.6.3




More information about the Telepathy-commits mailing list