[telepathy-gabble/master] Test the RemoteCandidates property
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Dec 29 05:34:45 PST 2009
---
tests/twisted/constants.py | 2 ++
tests/twisted/jingle/call-outgoing-basics.py | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/constants.py b/tests/twisted/constants.py
index 4745cbb..760962a 100644
--- a/tests/twisted/constants.py
+++ b/tests/twisted/constants.py
@@ -66,6 +66,8 @@ CALL_STREAM = 'org.freedesktop.Telepathy.Call.Stream.Draft'
CALL_STREAM_IFACE_MEDIA = \
'org.freedesktop.Telepathy.Call.Stream.Interface.Media.Draft'
+CALL_STREAM_ENDPOINT = 'org.freedesktop.Telepathy.Call.Stream.Endpoint.Draft'
+
CONN = "org.freedesktop.Telepathy.Connection"
CONN_IFACE_AVATARS = CONN + '.Interface.Avatars'
diff --git a/tests/twisted/jingle/call-outgoing-basics.py b/tests/twisted/jingle/call-outgoing-basics.py
index 560572d..a740091 100644
--- a/tests/twisted/jingle/call-outgoing-basics.py
+++ b/tests/twisted/jingle/call-outgoing-basics.py
@@ -93,6 +93,12 @@ def run_test(jp, q, bus, conn, stream):
"Endpoints", dbus_interface=dbus.PROPERTIES_IFACE)
assertEquals (1, len (endpoints))
+ endpoint = bus.get_object (conn.bus_name, endpoints[0])
+ candidates = endpoint.Get (cs.CALL_STREAM_ENDPOINT,
+ "RemoteCandidates", dbus_interface=dbus.PROPERTIES_IFACE)
+
+ assertEquals ([], candidates)
+
session_initiate = q.expect('stream-iq',
predicate=jp.action_predicate('session-initiate'))
--
1.5.6.5
More information about the telepathy-commits
mailing list