[telepathy-gabble/master] Return a wrapped channel from join_muc

Will Thompson will.thompson at collabora.co.uk
Tue Jun 2 08:10:37 PDT 2009


---
 tests/twisted/mucutil.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/mucutil.py b/tests/twisted/mucutil.py
index 99679a8..06f5e79 100644
--- a/tests/twisted/mucutil.py
+++ b/tests/twisted/mucutil.py
@@ -4,7 +4,7 @@ Utility functions for tests that need to interact with MUCs.
 
 import dbus
 
-from servicetest import call_async
+from servicetest import call_async, wrap_channel
 from gabbletest import make_muc_presence, request_muc_handle
 
 import constants as cs
@@ -38,7 +38,8 @@ def join_muc(q, bus, conn, stream, muc, request=None):
 
     event = q.expect('dbus-return', method='CreateChannel')
     path, props = event.value
-    chan = bus.get_object(conn.bus_name, path)
+    chan = wrap_channel(bus.get_object(conn.bus_name, path), 'Text',
+        ['Messages'])
 
     return (muc_handle, chan, path, props)
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list