[telepathy-gabble/master] muc/test-muc-invitation.py: properly check the reason in MembersChanged

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Jul 3 07:26:27 PDT 2009


Assuming that the room self handle is equal to the Invited error code is
not a really good idea.
---
 tests/twisted/muc/test-muc-invitation.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/muc/test-muc-invitation.py b/tests/twisted/muc/test-muc-invitation.py
index 847f6ca..ed9cb9f 100644
--- a/tests/twisted/muc/test-muc-invitation.py
+++ b/tests/twisted/muc/test-muc-invitation.py
@@ -83,7 +83,7 @@ def test(q, bus, conn, stream):
     assert status.children[0] == u'success'
 
     assert event2.args == ['', [], [bob_handle], [],
-            [room_self_handle], 0, room_self_handle]
+            [room_self_handle], 0, cs.GC_REASON_INVITED]
 
     # Send presence for own membership of room.
     stream.send(make_muc_presence('owner', 'moderator', 'chat at conf.localhost', 'test'))
-- 
1.5.6.5




More information about the telepathy-commits mailing list