[telepathy-gabble/master] Add a test for GabbleCallStream's LocalCandidatesAdded signal.
Mike Ruprecht
mike.ruprecht at collabora.co.uk
Tue Dec 29 05:35:09 PST 2009
---
tests/twisted/jingle/call-basics.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/jingle/call-basics.py b/tests/twisted/jingle/call-basics.py
index 90acf05..a77e9f6 100644
--- a/tests/twisted/jingle/call-basics.py
+++ b/tests/twisted/jingle/call-basics.py
@@ -138,6 +138,10 @@ def run_test(jp, q, bus, conn, stream, incoming):
candidates = jt2.get_call_remote_transports_dbus ()
cstream.AddCandidates (candidates,
dbus_interface=cs.CALL_STREAM_IFACE_MEDIA)
+
+ signal = q.expect ('dbus-signal', signal='LocalCandidatesAdded')
+ assertEquals (candidates, signal.args[0])
+
cstream.CandidatesPrepared (dbus_interface=cs.CALL_STREAM_IFACE_MEDIA)
local_candidates = cstream.Get(cs.CALL_STREAM_IFACE_MEDIA,
--
1.5.6.5
More information about the telepathy-commits
mailing list