[Telepathy-commits] [telepathy-gabble/master] tubes/test-muc-accept-stream-tube-ibb.py: exercise TargetID/Initiator* for tube initiated by others

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


20080722144146-53eee-2717e391f22a2eb4af87955e7285a89a9c7617f3.gz
---
 .../tubes/test-muc-accept-stream-tube-ibb.py       |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py b/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
index f62bb28..770e348 100644
--- a/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
+++ b/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
@@ -126,6 +126,14 @@ def test(q, bus, conn, stream):
     tubes_chan = bus.get_object(conn.bus_name, event.args[0])
     tubes_iface = dbus.Interface(tubes_chan, event.args[1])
 
+    # 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'] == ''
+    assert future_props['InitiatorHandle'] == 0
+
     tubes_self_handle = tubes_chan.GetSelfHandle(
         dbus_interface=tp_name_prefix + '.Channel.Interface.Group')
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list