[Telepathy-commits] [telepathy-gabble/master] Test that leaving MUCs works after name conflicts.
Will Thompson
will.thompson at collabora.co.uk
Tue Feb 3 06:00:06 PST 2009
---
tests/twisted/muc/name-conflict.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/muc/name-conflict.py b/tests/twisted/muc/name-conflict.py
index 8b8cd0c..43fce0f 100644
--- a/tests/twisted/muc/name-conflict.py
+++ b/tests/twisted/muc/name-conflict.py
@@ -121,6 +121,13 @@ def test_join(q, bus, conn, stream, room_jid, transient_conflict):
if not transient_conflict:
assert handle_owners[t] == 0, (handle_owners, t)
+ # test that closing the channel results in an unavailable message to the
+ # right jid
+ text_chan.Close()
+
+ event = q.expect('stream-presence', to=member_)
+ elem = event.stanza
+ assert elem['type'] == 'unavailable'
if __name__ == '__main__':
exec_test(test)
--
1.5.6.5
More information about the telepathy-commits
mailing list