[Telepathy-commits] [telepathy-salut/master] test-request-im.py: no need to use call_async for EnsureChannel
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Nov 28 02:58:50 PST 2008
---
tests/twisted/avahi/test-request-im.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/avahi/test-request-im.py b/tests/twisted/avahi/test-request-im.py
index 94d4588..970e215 100644
--- a/tests/twisted/avahi/test-request-im.py
+++ b/tests/twisted/avahi/test-request-im.py
@@ -157,16 +157,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_TEXT,
tp_name_prefix + '.Channel.TargetHandleType': HT_CONTACT,
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