[Telepathy-commits] [telepathy-gabble/master] test that closing the MUC results in sending unavailable presence to it

Robert McQueen robert.mcqueen at collabora.co.uk
Tue Aug 19 10:54:04 PDT 2008


20080727033215-418b8-289918ab63bd3104200c59bdf3e10799765c4ba8.gz
---
 tests/twisted/muc/test-muc.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/muc/test-muc.py b/tests/twisted/muc/test-muc.py
index e8a0c90..8aa87cb 100644
--- a/tests/twisted/muc/test-muc.py
+++ b/tests/twisted/muc/test-muc.py
@@ -139,6 +139,13 @@ def test(q, bus, conn, stream):
     assert body.name == 'body'
     assert body.children[0] == u'goodbye'
 
+    # test that closing the channel results in an unavailable message
+    text_chan.Close()
+
+    event = q.expect('stream-presence', to='chat at conf.localhost/test')
+    elem = event.stanza
+    assert elem['type'] == 'unavailable'
+
     conn.Disconnect()
 
     q.expect('dbus-signal', signal='StatusChanged', args=[2, 1])
-- 
1.5.6.3




More information about the Telepathy-commits mailing list