[telepathy-gabble/master] Check if the Content has the right type

Sjoerd Simons sjoerd.simons at collabora.co.uk
Tue Dec 29 05:34:44 PST 2009


---
 tests/twisted/constants.py                   |    3 +++
 tests/twisted/jingle/call-outgoing-basics.py |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/constants.py b/tests/twisted/constants.py
index 760962a..24e21c8 100644
--- a/tests/twisted/constants.py
+++ b/tests/twisted/constants.py
@@ -68,6 +68,9 @@ CALL_STREAM_IFACE_MEDIA = \
 
 CALL_STREAM_ENDPOINT = 'org.freedesktop.Telepathy.Call.Stream.Endpoint.Draft'
 
+CALL_MEDIA_TYPE_AUDIO = 1
+CALL_MEDIA_TYPE_VIDEO = 2
+
 
 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 a740091..ec344f7 100644
--- a/tests/twisted/jingle/call-outgoing-basics.py
+++ b/tests/twisted/jingle/call-outgoing-basics.py
@@ -71,6 +71,9 @@ def run_test(jp, q, bus, conn, stream):
 
     cstream = bus.get_object (conn.bus_name, content_properties["Streams"][0])
 
+    # Media type should audio
+    assertEquals (cs.CALL_MEDIA_TYPE_AUDIO, content_properties["Type"])
+
     # Setup codecs
     codecs = jt2.get_call_audio_codecs_dbus()
     content.SetCodecs(codecs, dbus_interface=cs.CALL_CONTENT_IFACE_MEDIA)
-- 
1.5.6.5




More information about the telepathy-commits mailing list