[Telepathy-commits] [telepathy-gabble/master] offer-private-dbus-tube-ibb.py: check if the Closed and ChannelClosed signals are fired

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Feb 3 02:46:15 PST 2009


---
 tests/twisted/tubes/offer-private-dbus-tube-ibb.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/tubes/offer-private-dbus-tube-ibb.py b/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
index 34b7695..a5c998b 100644
--- a/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
+++ b/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
@@ -301,6 +301,12 @@ def offer_new_dbus_tube(q, bus, conn, stream, self_handle, alice_handle):
     status = tube_chan.Get(CHANNEL_IFACE_TUBE, 'State', dbus_interface=PROPERTIES_IFACE)
     assert status == TUBE_STATE_REMOTE_PENDING
 
+    tube_chan_iface.Close()
+
+    q.expect_many(
+        EventPattern('dbus-signal', signal='Closed'),
+        EventPattern('dbus-signal', signal='ChannelClosed'))
+
 def test(q, bus, conn, stream):
     conn.Connect()
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list