diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-02-11 14:01:10 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-02-11 14:01:10 +0000 |
commit | 02afbf76f9c82202aff0c893b1eccf3150ec2a85 (patch) | |
tree | c243b5fed03bfb68da4388a44b1f7e81b69f76db /tests | |
parent | c8223feda96ec38ca0d5accabe4a563c20b7a5e1 (diff) | |
download | telepathy-idle-02afbf76f9c82202aff0c893b1eccf3150ec2a85.tar.gz |
ImChannel: include Destroyable in Channel.Interfaces.
I implemented Destroyable over a year ago, but forgot to actually
include the interface in the Channel.Interfaces property… Here's a fix,
and a test.
Fixes: <https://bugs.freedesktop.org/show_bug.cgi?id=34166>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/twisted/channels/requests-create.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/twisted/channels/requests-create.py b/tests/twisted/channels/requests-create.py index 64120ec..e3adb64 100644 --- a/tests/twisted/channels/requests-create.py +++ b/tests/twisted/channels/requests-create.py @@ -5,7 +5,9 @@ Most of this test was borrowed from a gabble test and modified to fit idle """ from idletest import exec_test -from servicetest import EventPattern, call_async, make_channel_proxy +from servicetest import ( + EventPattern, call_async, make_channel_proxy, assertContains, +) import dbus import constants as cs @@ -104,6 +106,8 @@ def test(q, bus, conn, stream): assert ms[0][5] == 'oh hai' # Without acknowledging the message, we destroy the channel: + assertContains(cs.CHANNEL_IFACE_DESTROYABLE, + chan.Get(cs.CHANNEL, 'Interfaces', dbus_interface=cs.PROPERTIES_IFACE)) chan.Destroy(dbus_interface=cs.CHANNEL_IFACE_DESTROYABLE) q.expect('dbus-signal', signal='ChannelClosed') |