telepathy-gabble: MUC tests: modernize a bit
Simon McVittie
smcv at kemper.freedesktop.org
Mon Sep 23 02:38:40 PDT 2013
Module: telepathy-gabble
Branch: master
Commit: b3becb6b516e71f6ce1bac720b156aece7a41d84
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=b3becb6b516e71f6ce1bac720b156aece7a41d84
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Sep 20 17:17:24 2013 +0100
MUC tests: modernize a bit
We're better off using MembersChangedDetailed, which maps 1:1 into
MembersChanged in Telepathy 1.0.
Telepathy 1.0 no longer has RequestHandles, so cut out the middle-man
and request MUC channels by TargetID.
Hard-coding that the first two contacts we see are handles 2 and 3
is just horrible - let's not do that.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69618
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
---
tests/twisted/muc/test-muc-alias.py | 35 ++++++++++----
tests/twisted/tubes/accept-muc-stream-tube.py | 45 ++++++++++--------
tests/twisted/tubes/close-muc-with-closed-tube.py | 52 ++++++++++++--------
tests/twisted/tubes/test-get-available-tubes.py | 14 ++++-
4 files changed, 93 insertions(+), 53 deletions(-)
Diff: http://cgit.freedesktop.org/telepathy/telepathy-gabble/diff/?id=b3becb6b516e71f6ce1bac720b156aece7a41d84
More information about the telepathy-commits
mailing list