[telepathy-gabble/master] Add a partial test of GabbleCallStreamEndpoint's SelectedCandidate property.

Mike Ruprecht mike.ruprecht at collabora.co.uk
Tue Dec 29 05:35:07 PST 2009


It only tests what it returns when it hasn't been set yet. The tests don't yet
set remote candidates or the selected candidate anywhere.
---
 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 0ef9dd0..90acf05 100644
--- a/tests/twisted/jingle/call-basics.py
+++ b/tests/twisted/jingle/call-basics.py
@@ -165,6 +165,10 @@ def run_test(jp, q, bus, conn, stream, incoming):
 
     assertEquals ([], candidates)
 
+    selected_candidate = endpoint.Get (cs.CALL_STREAM_ENDPOINT,
+        "SelectedCandidate",  dbus_interface=dbus.PROPERTIES_IFACE)
+    assertEquals ((0, '', 0, {}), selected_candidate)
+
     state = endpoint.Get (cs.CALL_STREAM_ENDPOINT,
         "StreamState",  dbus_interface=dbus.PROPERTIES_IFACE)
     assertEquals (cs.MEDIA_STREAM_STATE_DISCONNECTED, state)
-- 
1.5.6.5




More information about the telepathy-commits mailing list