diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2009-08-30 23:43:39 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2009-08-30 23:43:39 +0100 |
commit | 2dc074a6fe3f59598d1404933b2c5fafb541b04e (patch) | |
tree | cde384db1510986722ed3c659e6ca01457ad6475 /tests | |
parent | 1fc2c51de60673f5a568824ddd7fc62349e4f09c (diff) |
Implement Destroyable for IM channels
Diffstat (limited to 'tests')
-rw-r--r-- | tests/twisted/channels/requests-create.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/twisted/channels/requests-create.py b/tests/twisted/channels/requests-create.py index ebe1db4..64120ec 100644 --- a/tests/twisted/channels/requests-create.py +++ b/tests/twisted/channels/requests-create.py @@ -103,6 +103,16 @@ def test(q, bus, conn, stream): assert len(ms) == 1 assert ms[0][5] == 'oh hai' + # Without acknowledging the message, we destroy the channel: + chan.Destroy(dbus_interface=cs.CHANNEL_IFACE_DESTROYABLE) + + q.expect('dbus-signal', signal='ChannelClosed') + + # It should be gone for good this time. + channels = conn.Get(cs.CONN_IFACE_REQUESTS, 'Channels', + dbus_interface=cs.PROPERTIES_IFACE) + assert channels == [], channels + call_async(q, conn, 'Disconnect') q.expect('dbus-signal', signal='StatusChanged', args=[2, 1]) |