[Telepathy-commits] [telepathy-gabble/master] jingle/test-outgoing-call.py: assert that the stream was CreatedLocally

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Feb 26 05:37:29 PST 2009


---
 tests/twisted/jingle/test-outgoing-call.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/jingle/test-outgoing-call.py b/tests/twisted/jingle/test-outgoing-call.py
index 64f0824..1240570 100644
--- a/tests/twisted/jingle/test-outgoing-call.py
+++ b/tests/twisted/jingle/test-outgoing-call.py
@@ -142,6 +142,12 @@ def test(q, bus, conn, stream):
     stream_handler.Ready(jt.get_audio_codecs_dbus())
     stream_handler.StreamState(2)
 
+    sh_props = stream_handler.GetAll(
+            'org.freedesktop.Telepathy.Media.StreamHandler',
+            dbus_interface=dbus.PROPERTIES_IFACE)
+    assert sh_props['NATTraversal'] == 'gtalk-p2p'
+    assert sh_props['CreatedLocally'] == True
+
     e = q.expect('stream-iq')
     assert e.query.name == 'jingle'
     assert e.query['action'] == 'session-initiate'
-- 
1.5.6.5




More information about the telepathy-commits mailing list