[Telepathy-commits] [telepathy-gabble/master] tubes/test-muc-offer-dbus-tube.py: exercise TargetID/Initiator* for Tubes channel initiated by us

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


20080722144218-53eee-ec3880d41c98d833dabb841da2346956b2d22a28.gz
---
 tests/twisted/tubes/test-muc-offer-dbus-tube.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/tubes/test-muc-offer-dbus-tube.py b/tests/twisted/tubes/test-muc-offer-dbus-tube.py
index b7feb05..f447d85 100644
--- a/tests/twisted/tubes/test-muc-offer-dbus-tube.py
+++ b/tests/twisted/tubes/test-muc-offer-dbus-tube.py
@@ -117,6 +117,14 @@ def test(q, bus, conn, stream):
     assert 'RemotePendingMembers' in group_props, group_props
     assert 'GroupFlags' in group_props, group_props
 
+    # Exercise FUTURE properties
+    future_props = tubes_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()
+
     tubes_self_handle = tubes_chan.GetSelfHandle(
         dbus_interface=tp_name_prefix + '.Channel.Interface.Group')
     assert group_props['SelfHandle'] == tubes_self_handle
-- 
1.5.6.3




More information about the Telepathy-commits mailing list