[telepathy-gabble/master] test-muc-invitation.py: send Bob's presence when joining the room
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Jul 14 02:48:14 PDT 2009
---
tests/twisted/muc/test-muc-invitation.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/muc/test-muc-invitation.py b/tests/twisted/muc/test-muc-invitation.py
index b8ebaee..476c7cf 100644
--- a/tests/twisted/muc/test-muc-invitation.py
+++ b/tests/twisted/muc/test-muc-invitation.py
@@ -88,11 +88,16 @@ def test(q, bus, conn, stream):
assert event2.args == ['', [], [bob_handle], [],
[room_self_handle], 0, cs.GC_REASON_INVITED]
+ # Send presence for Bob's membership of room.
+ stream.send(make_muc_presence('owner', 'moderator', 'chat at conf.localhost', 'bob'))
+
# Send presence for own membership of room.
stream.send(make_muc_presence('owner', 'moderator', 'chat at conf.localhost', 'test'))
event = q.expect('dbus-signal', signal='MembersChanged')
- assert event.args == ['', [room_self_handle], [], [], [], 0, 0]
+
+ room_bob_handle = conn.RequestHandles(cs.HT_CONTACT, ['chat at conf.localhost/bob'])[0]
+ assert event.args == ['', [room_self_handle, room_bob_handle], [], [], [], 0, 0]
# Test sending an invitation
alice_handle = conn.RequestHandles(1, ['alice at localhost'])[0]
--
1.5.6.5
More information about the telepathy-commits
mailing list