[Telepathy-commits] [telepathy-gabble/master] add anonymous arg to get_muc_tubes_channel
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Mar 12 08:06:06 PDT 2009
---
tests/twisted/tubes/muctubeutil.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/tubes/muctubeutil.py b/tests/twisted/tubes/muctubeutil.py
index 21026ab..91d2762 100644
--- a/tests/twisted/tubes/muctubeutil.py
+++ b/tests/twisted/tubes/muctubeutil.py
@@ -6,7 +6,7 @@ import constants as cs
from twisted.words.xish import domish, xpath
-def get_muc_tubes_channel(q, bus, conn, stream, muc_jid):
+def get_muc_tubes_channel(q, bus, conn, stream, muc_jid, anonymous=True):
"""
Returns a singleton list containing the MUC's handle, a proxy for the Tubes
channel, and a proxy for the Tubes iface on that channel.
@@ -41,7 +41,12 @@ def get_muc_tubes_channel(q, bus, conn, stream, muc_jid):
EventPattern('stream-presence', to=test_jid))
# Send presence for other member of room.
- stream.send(make_muc_presence('owner', 'moderator', muc_jid, 'bob'))
+ if not anonymous:
+ real_jid = 'bob at localhost'
+ else:
+ real_jid = None
+
+ stream.send(make_muc_presence('owner', 'moderator', muc_jid, 'bob', real_jid))
# Send presence for own membership of room.
stream.send(make_muc_presence('none', 'participant', muc_jid, 'test'))
--
1.5.6.5
More information about the telepathy-commits
mailing list