[Telepathy-commits] [telepathy-gabble/master] test-si-tubes.py: exercise Channel properties in 1-1 Tubes channels
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:09 PDT 2008
20080606130138-53eee-b2c461ab7577974394d549bea96ff927a882478a.gz
---
tests/twisted/tubes/test-si-tubes.py | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/test-si-tubes.py b/tests/twisted/tubes/test-si-tubes.py
index c1ddcc9..3e8c388 100644
--- a/tests/twisted/tubes/test-si-tubes.py
+++ b/tests/twisted/tubes/test-si-tubes.py
@@ -93,6 +93,22 @@ def test(q, bus, conn, stream):
tubes_iface = dbus.Interface(tubes_chan,
tp_name_prefix + '.Channel.Type.Tubes')
+ # Exercise basic Channel Properties from spec 0.17.7
+ channel_props = tubes_chan.GetAll(
+ 'org.freedesktop.Telepathy.Channel',
+ dbus_interface='org.freedesktop.DBus.Properties')
+ assert channel_props.get('TargetHandle') == bob_handle,\
+ (channel_props.get('TargetHandle'), bob_handle)
+ assert channel_props.get('TargetHandleType') == 1,\
+ channel_props.get('TargetHandleType')
+ assert channel_props.get('ChannelType') == \
+ 'org.freedesktop.Telepathy.Channel.Type.Tubes',\
+ channel_props.get('ChannelType')
+ assert 'Interfaces' in channel_props, channel_props
+ assert 'org.freedesktop.Telepathy.Channel.Interface.Group' not in \
+ channel_props['Interfaces'], \
+ channel_props['Interfaces']
+
self_handle = conn.GetSelfHandle()
# Unix socket
--
1.5.6.3
More information about the Telepathy-commits
mailing list