[Telepathy-commits] [telepathy-gabble/master] Test Channel.Type.DBusTube.DRAFT: this interface is not yet implemented, but Gabble must not crash when requesting a channel. Add a test.
Alban Crequy
alban.crequy at collabora.co.uk
Wed Dec 17 04:34:36 PST 2008
---
tests/twisted/tubes/test-si-tubes.py | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/test-si-tubes.py b/tests/twisted/tubes/test-si-tubes.py
index aa192d1..2ef6ab9 100644
--- a/tests/twisted/tubes/test-si-tubes.py
+++ b/tests/twisted/tubes/test-si-tubes.py
@@ -314,6 +314,24 @@ def test(q, bus, conn, stream):
# CreateChannel failed, we expect no new channel
check_conn_properties(q, bus, conn, stream, [old_tubes_channel_properties])
+ # Try to create a DBusTube.DRAFT channel. This is not implemented yet, so
+ # it will fail. But it should not assert.
+ call_async(q, requestotron, 'CreateChannel',
+ {'org.freedesktop.Telepathy.Channel.ChannelType':
+ 'org.freedesktop.Telepathy.Channel.Type.DBusTube.DRAFT',
+ 'org.freedesktop.Telepathy.Channel.TargetHandleType':
+ 1,
+ 'org.freedesktop.Telepathy.Channel.TargetHandle':
+ bob_handle,
+ 'org.freedesktop.Telepathy.Channel.Type.DBusTube.DRAFT.ServiceName':
+ "com.example.ServiceName",
+ 'org.freedesktop.Telepathy.Channel.Interface.Tube.DRAFT.Parameters':
+ dbus.Dictionary({'foo': 'bar'}, signature='sv'),
+ });
+ ret = q.expect_many(EventPattern('dbus-error', method='CreateChannel'))
+ # CreateChannel failed, we expect no new channel
+ check_conn_properties(q, bus, conn, stream, [old_tubes_channel_properties])
+
# Try to CreateChannel with correct properties
# Gabble must succeed
call_async(q, requestotron, 'CreateChannel',
--
1.5.6.5
More information about the Telepathy-commits
mailing list