[telepathy-gabble/master] Add tests for SelectedCandidate's property and signal.
Mike Ruprecht
mike.ruprecht at collabora.co.uk
Tue Dec 29 05:35:32 PST 2009
---
tests/twisted/jingle/call-basics.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/jingle/call-basics.py b/tests/twisted/jingle/call-basics.py
index 02640f0..7956761 100644
--- a/tests/twisted/jingle/call-basics.py
+++ b/tests/twisted/jingle/call-basics.py
@@ -259,6 +259,18 @@ def run_test(jp, q, bus, conn, stream, incoming):
assertEquals (jt2.get_call_remote_transports_dbus(),
remote_candidates.args[0])
+ endpoint.SetSelectedCandidate (jt2.get_call_remote_transports_dbus()[0],
+ dbus_interface=cs.CALL_STREAM_ENDPOINT)
+
+ selected_candidate = q.expect ('dbus-signal',
+ signal='CandidateSelected', interface=cs.CALL_STREAM_ENDPOINT)
+ assertEquals (jt2.get_call_remote_transports_dbus(),
+ selected_candidate.args)
+
+ selected_candidate = endpoint.Get (cs.CALL_STREAM_ENDPOINT,
+ "SelectedCandidate", dbus_interface=dbus.PROPERTIES_IFACE)
+ assertEquals (jt2.get_call_remote_transports_dbus()[0], selected_candidate)
+
endpoint.SetStreamState (cs.MEDIA_STREAM_STATE_CONNECTED,
dbus_interface=cs.CALL_STREAM_ENDPOINT)
--
1.5.6.5
More information about the telepathy-commits
mailing list