summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-01 20:10:25 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-01 20:10:25 +0000
commite5914de8d9b2bdaabe7065683b62b1de55e1c8e1 (patch)
tree78a6e0dc5dd1083a4532eec277590533e1129ca4 /tests
parentc71898667b7418d60d9546ec39028fdf5343245d (diff)
test-message.py: exercise the Channel D-Bus properties
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/test-message.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/twisted/test-message.py b/tests/twisted/test-message.py
index 379921a..4694680 100644
--- a/tests/twisted/test-message.py
+++ b/tests/twisted/test-message.py
@@ -25,6 +25,17 @@ def test(q, bus, conn, sip):
obj = bus.get_object(conn._named_service, chan)
iface = dbus.Interface(obj, TEXT_TYPE)
+ text_props = obj.GetAll(tp_name_prefix + '.Channel',
+ dbus_interface='org.freedesktop.DBus.Properties')
+ assert 'TargetHandle' in text_props, text_props
+ assert text_props['TargetHandle'] == handle, \
+ (text_props, handle)
+ assert 'TargetHandleType' in text_props, text_props
+ assert text_props['TargetHandleType'] == 1, text_props
+ assert 'Interfaces' in text_props, text_props
+ assert text_props['Interfaces'] == [], text_props
+ assert text_props['ChannelType'] == TEXT_TYPE, text_props
+
iface.Send(0, 'Hello')
event = q.expect('sip-message', uri='sip:user@somewhere.com', body='Hello')