[Telepathy-commits] [telepathy-gabble/master] offer-muc-dbus-tube: check DBusNames property
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Feb 5 03:23:12 PST 2009
---
tests/twisted/tubes/offer-muc-dbus-tube.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/offer-muc-dbus-tube.py b/tests/twisted/tubes/offer-muc-dbus-tube.py
index e67c65c..b4a0233 100644
--- a/tests/twisted/tubes/offer-muc-dbus-tube.py
+++ b/tests/twisted/tubes/offer-muc-dbus-tube.py
@@ -320,6 +320,9 @@ def test(q, bus, conn, stream):
tube = Connection(dbus_tube_adr)
fire_signal_on_tube(q, tube, 'chat2 at conf.localhost', dbus_stream_id, my_bus_name)
+ names = tube_chan.Get(CHANNEL_TYPE_DBUS_TUBE, 'DBusNames', dbus_interface=PROPERTIES_IFACE)
+ assert names == {tube_self_handle: my_bus_name, bob_handle: bob_bus_name}
+
# Bob leave the tube
presence = elem('presence', from_='chat2 at conf.localhost/bob', to='chat2 at conf.localhost')(
elem('x', xmlns=ns.MUC),
@@ -333,6 +336,9 @@ def test(q, bus, conn, stream):
assert added == {}
assert removed == [bob_handle]
+ names = tube_chan.Get(CHANNEL_TYPE_DBUS_TUBE, 'DBusNames', dbus_interface=PROPERTIES_IFACE)
+ assert names == {tube_self_handle: my_bus_name}
+
chan_iface.Close()
q.expect_many(
EventPattern('dbus-signal', signal='Closed'),
--
1.5.6.5
More information about the telepathy-commits
mailing list