[telepathy-gabble/telepathy-gabble-0.8] mucutil.join_muc: make it possible to control our role in the room

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Nov 12 06:42:08 PST 2009


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

diff --git a/tests/twisted/mucutil.py b/tests/twisted/mucutil.py
index 768fb44..3c30ea7 100644
--- a/tests/twisted/mucutil.py
+++ b/tests/twisted/mucutil.py
@@ -11,7 +11,7 @@ import constants as cs
 import ns
 
 def join_muc(q, bus, conn, stream, muc, request=None,
-        also_capture=[]):
+        also_capture=[], role='participant'):
     """
     Joins 'muc', returning the muc's handle, a proxy object for the channel,
     its path and its immutable properties just after the CreateChannel event
@@ -36,7 +36,7 @@ def join_muc(q, bus, conn, stream, muc, request=None,
     stream.send(make_muc_presence('owner', 'moderator', muc, 'bob'))
 
     # Send presence for own membership of room.
-    stream.send(make_muc_presence('none', 'participant', muc, 'test'))
+    stream.send(make_muc_presence('none', role, muc, 'test'))
 
     captured = q.expect_many(
             EventPattern('dbus-return', method='CreateChannel'),
-- 
1.5.6.5




More information about the telepathy-commits mailing list