diff -rN -up old-telepathy-gabble/tests/twisted/muc/test-muc.py new-telepathy-gabble/tests/twisted/muc/test-muc.py --- old-telepathy-gabble/tests/twisted/muc/test-muc.py 2008-07-29 13:52:15.000000000 +0300 +++ new-telepathy-gabble/tests/twisted/muc/test-muc.py 2008-07-29 13:52:15.000000000 +0300 @@ -151,12 +151,17 @@ def test(q, bus, conn, stream): assert status assert status.children[0] == u'hurrah' - # test that closing the channel results in an unavailable message - text_chan.Close() + # test that leaving the channel results in an unavailable message + dbus.Interface(text_chan, + 'org.freedesktop.Telepathy.Channel.Interface.Group').RemoveMembers( + [2], 'booo') event = q.expect('stream-presence', to='chat@conf.localhost/test') elem = event.stanza assert elem['type'] == 'unavailable' + status = [e for e in elem.elements() if e.name == 'status'][0] + assert status + assert status.children[0] == u'booo' conn.Disconnect()