[Telepathy-commits] [telepathy-gabble/master] offer-private-dbus-tube-ibb: check Status and Parameters values

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jan 27 02:14:14 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 244696c..182146f 100644
--- a/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
+++ b/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
@@ -285,6 +285,12 @@ def offer_new_dbus_tube(q, bus, conn, stream, self_handle, alice_handle):
     tube_chan_iface = dbus.Interface(tube_chan, tp_name_prefix + '.Channel')
     dbus_tube_iface = dbus.Interface(tube_chan, CHANNEL_TYPE_DBUS_TUBE)
 
+    # check Status and Parameters
+    props = tube_chan.GetAll(CHANNEL_IFACE_TUBE, dbus_interface=PROPERTIES_IFACE,
+        byte_arrays=True)
+    assert props['Status'] == TUBE_CHANNEL_STATE_NOT_OFFERED
+    assert props['Parameters'] == sample_parameters
+
     # Only when we offer the tube should it appear on the Tubes channel and an
     # IQ be sent to Alice. We sync the stream to ensure the IQ would have
     # arrived if it had been sent.
-- 
1.5.6.5




More information about the Telepathy-commits mailing list