[Telepathy-commits] [telepathy-gabble/master] muc/test-muc.py: exercise future channel properties

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


20080721191307-53eee-bf74edfe7f96fb3ff275e24755464f9f648d2a1c.gz
---
 tests/twisted/muc/test-muc.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/muc/test-muc.py b/tests/twisted/muc/test-muc.py
index a0ab34b..1ad665f 100644
--- a/tests/twisted/muc/test-muc.py
+++ b/tests/twisted/muc/test-muc.py
@@ -89,6 +89,17 @@ def test(q, bus, conn, stream):
     assert 'org.freedesktop.Telepathy.Channel.Interface.ChatState' in \
             channel_props.get('Interfaces', ()), \
             channel_props.get('Interfaces')
+    assert 'org.freedesktop.Telepathy.Channel.FUTURE' in \
+            channel_props.get('Interfaces', ()), \
+            channel_props.get('Interfaces')
+
+    # Exercise FUTURE properties
+    future_props = text_chan.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == 'chat at conf.localhost'
+    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 = text_chan.GetAll(
-- 
1.5.6.3




More information about the Telepathy-commits mailing list