[Telepathy-commits] [telepathy-salut/master] test-request-muc-tubes.py: no need to use call_async for EnsureChannel
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Nov 27 09:40:43 PST 2008
---
tests/twisted/avahi/test-request-muc-tubes.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/avahi/test-request-muc-tubes.py b/tests/twisted/avahi/test-request-muc-tubes.py
index 2f1076a..b61aeef 100644
--- a/tests/twisted/avahi/test-request-muc-tubes.py
+++ b/tests/twisted/avahi/test-request-muc-tubes.py
@@ -174,16 +174,13 @@ def test(q, bus, conn):
assert old_sig.args[4] == True # suppress handler
# ensure roomlist channel
- call_async(q, requestotron, 'EnsureChannel',
+ yours, ensured_path, ensured_props = requestotron.EnsureChannel(
{ tp_name_prefix + '.Channel.ChannelType':
CHANNEL_TYPE_TUBES,
tp_name_prefix + '.Channel.TargetHandleType': HT_ROOM,
tp_name_prefix + '.Channel.TargetHandle': handle,
})
- ret = q.expect('dbus-return', method='EnsureChannel')
- yours, ensured_path, ensured_props = ret.value
-
assert not yours
assert ensured_path == path2, (ensured_path, path2)
--
1.5.6.5
More information about the Telepathy-commits
mailing list