[Telepathy-commits] [telepathy-gabble/master] offer-muc-stream-tube-ibb: check Closed and ChannelClosed signals
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Feb 2 08:18:11 PST 2009
---
tests/twisted/tubes/offer-muc-stream-tube-ibb.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/offer-muc-stream-tube-ibb.py b/tests/twisted/tubes/offer-muc-stream-tube-ibb.py
index 2b4d1e2..f0297d8 100644
--- a/tests/twisted/tubes/offer-muc-stream-tube-ibb.py
+++ b/tests/twisted/tubes/offer-muc-stream-tube-ibb.py
@@ -357,6 +357,7 @@ def test(q, bus, conn, stream):
tube_chan = bus.get_object(conn.bus_name, path)
stream_tube_iface = dbus.Interface(tube_chan, CHANNEL_TYPE_STREAM_TUBE)
+ chan_iface = dbus.Interface(tube_chan, CHANNEL)
tube_props = tube_chan.GetAll(CHANNEL_IFACE_TUBE, dbus_interface=PROPERTIES_IFACE)
assert tube_props['Parameters'] == {'foo': 'bar'}
@@ -408,6 +409,11 @@ def test(q, bus, conn, stream):
params[node['name']] = (node['type'], str(node))
assert params == {'foo': ('str', 'bar')}
+ chan_iface.Close()
+ q.expect_many(
+ EventPattern('dbus-signal', signal='Closed'),
+ EventPattern('dbus-signal', signal='ChannelClosed'))
+
# OK, we're done
conn.Disconnect()
--
1.5.6.5
More information about the Telepathy-commits
mailing list