[Telepathy-commits] [telepathy-salut/master] test-roomlist.py: no need to use call_async for EnsureChannel

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Nov 27 09:53:25 PST 2008


---
 tests/twisted/avahi/test-roomlist.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/avahi/test-roomlist.py b/tests/twisted/avahi/test-roomlist.py
index 44ef24f..488735a 100644
--- a/tests/twisted/avahi/test-roomlist.py
+++ b/tests/twisted/avahi/test-roomlist.py
@@ -153,15 +153,12 @@ def test(q, bus, conn):
             dbus_interface='org.freedesktop.DBus.Properties') == ''
 
     # ensure roomlist channel
-    call_async(q, requestotron, 'EnsureChannel',
+    yours, ensured_path, ensured_props = requestotron.EnsureChannel(
             { tp_name_prefix + '.Channel.ChannelType':
                 CHANNEL_TYPE_ROOMLIST,
               tp_name_prefix + '.Channel.TargetHandleType': 0,
               })
 
-    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