[telepathy-gabble/master] Expect an error if the protocol can't do video only and is requested to do so
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Thu Jun 25 09:59:38 PDT 2009
---
tests/twisted/jingle/initial-audio-video.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/jingle/initial-audio-video.py b/tests/twisted/jingle/initial-audio-video.py
index 9602742..183c625 100644
--- a/tests/twisted/jingle/initial-audio-video.py
+++ b/tests/twisted/jingle/initial-audio-video.py
@@ -76,7 +76,8 @@ def check_iav(jt, q, conn, bus, stream, remote_handle, initial_audio,
cs.INITIAL_AUDIO: initial_audio,
cs.INITIAL_VIDEO: initial_video,
})
- if initial_video and not jt.jp.can_do_video():
+ if initial_video and (not jt.jp.can_do_video()
+ or (not initial_audio and not jt.jp.can_do_video_only ())):
# Some protocols can't do video
event = q.expect('dbus-error', method='CreateChannel')
assertEquals(cs.NOT_CAPABLE, event.error.get_dbus_name())
--
1.5.6.5
More information about the telepathy-commits
mailing list