[Telepathy-commits] [telepathy-gabble/master] offer-private-dbus-tube-ibb.py: check ServiceName and DBusNames properties

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jan 27 02:47:46 PST 2009


---
 tests/twisted/tubes/offer-private-dbus-tube-ibb.py |    5 +++++
 1 files changed, 5 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 a764352..0adf65f 100644
--- a/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
+++ b/tests/twisted/tubes/offer-private-dbus-tube-ibb.py
@@ -269,6 +269,11 @@ def offer_new_dbus_tube(q, bus, conn, stream, self_handle, alice_handle):
     assert props['Status'] == TUBE_CHANNEL_STATE_NOT_OFFERED
     assert props['Parameters'] == sample_parameters
 
+    # check ServiceName and DBusNames
+    props = tube_chan.GetAll(CHANNEL_TYPE_DBUS_TUBE, dbus_interface=PROPERTIES_IFACE)
+    assert props['ServiceName'] == 'com.example.TestCase'
+    assert props['DBusNames'] == {}
+
     # 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