[Telepathy-commits] [telepathy-salut/master] test-two-muc-stream-tubes: check if TubeChannelStateChanged is fired when Offering the tube
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Mar 11 09:15:29 PDT 2009
---
tests/twisted/avahi/test-two-muc-stream-tubes.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/avahi/test-two-muc-stream-tubes.py b/tests/twisted/avahi/test-two-muc-stream-tubes.py
index 3b398e5..6caac0d 100644
--- a/tests/twisted/avahi/test-two-muc-stream-tubes.py
+++ b/tests/twisted/avahi/test-two-muc-stream-tubes.py
@@ -326,8 +326,12 @@ def test(q, bus, conn):
state = contact1_stream_tube.Get(CHANNEL_IFACE_TUBE, 'State', dbus_interface=PROPERTIES_IFACE)
assert state == TUBE_CHANNEL_STATE_NOT_OFFERED
- contact1_stream_tube.OfferStreamTube(SOCKET_ADDRESS_TYPE_UNIX, dbus.ByteArray(server_socket_address),
- SOCKET_ACCESS_CONTROL_LOCALHOST, "")
+ call_async(q, contact1_stream_tube, 'OfferStreamTube', SOCKET_ADDRESS_TYPE_UNIX,
+ dbus.ByteArray(server_socket_address), SOCKET_ACCESS_CONTROL_LOCALHOST, "")
+
+ q.expect_many(
+ EventPattern('dbus-signal', signal='TubeChannelStateChanged', args=[TUBE_CHANNEL_STATE_OPEN]),
+ EventPattern('dbus-return', method='OfferStreamTube'))
state = contact1_stream_tube.Get(CHANNEL_IFACE_TUBE, 'State', dbus_interface=PROPERTIES_IFACE)
assert state == TUBE_CHANNEL_STATE_OPEN
--
1.5.6.5
More information about the telepathy-commits
mailing list