[Telepathy-commits] [telepathy-gabble/master] test-text.py: Exercise TargetID property

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


20080721142703-53eee-ca49e614e6191561bcce46258f7a0df2641a0d98.gz
---
 tests/twisted/text/test-text.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/text/test-text.py b/tests/twisted/text/test-text.py
index 9c35b55..0d900eb 100644
--- a/tests/twisted/text/test-text.py
+++ b/tests/twisted/text/test-text.py
@@ -42,6 +42,15 @@ 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')
+
+    future_props = text_chan.GetAll(
+            'org.freedesktop.Telepathy.Channel.FUTURE',
+            dbus_interface='org.freedesktop.DBus.Properties')
+    assert future_props['TargetID'] == jid,\
+            (future_props['TargetID'], jid)
 
     event = q.expect('dbus-signal', signal='Received')
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list