telepathy-gabble: tests: use ns.GOOGLE_JINGLE_INFO constant

Will Thompson wjt at kemper.freedesktop.org
Thu Dec 6 04:29:02 PST 2012


Module: telepathy-gabble
Branch: master
Commit: 8a7399906b40e99b6a0b5b3a7eff0879f7cca361
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=8a7399906b40e99b6a0b5b3a7eff0879f7cca361

Author: Will Thompson <will.thompson at collabora.co.uk>
Date:   Thu Nov 22 14:42:12 2012 +0000

tests: use ns.GOOGLE_JINGLE_INFO constant

---

 tests/twisted/jingle/google-relay.py |    2 +-
 tests/twisted/jingle/stun-server.py  |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/jingle/google-relay.py b/tests/twisted/jingle/google-relay.py
index 2ac72a2..b3824db 100644
--- a/tests/twisted/jingle/google-relay.py
+++ b/tests/twisted/jingle/google-relay.py
@@ -108,7 +108,7 @@ def test(q, bus, conn, stream, incoming=True, too_slow=None, use_call=False):
             ])
 
     # See: http://code.google.com/apis/talk/jep_extensions/jingleinfo.html
-    ji_event = q.expect('stream-iq', query_ns='google:jingleinfo',
+    ji_event = q.expect('stream-iq', query_ns=ns.GOOGLE_JINGLE_INFO,
                 to='test at localhost')
 
     # Regression test for a bug where Gabble would crash if it disconnected
diff --git a/tests/twisted/jingle/stun-server.py b/tests/twisted/jingle/stun-server.py
index 6b69ea3..54c52ba 100644
--- a/tests/twisted/jingle/stun-server.py
+++ b/tests/twisted/jingle/stun-server.py
@@ -12,6 +12,7 @@ from servicetest import (
     )
 import jingletest
 import constants as cs
+import ns
 
 from config import CHANNEL_TYPE_CALL_ENABLED, GOOGLE_RELAY_ENABLED, VOIP_ENABLED
 
@@ -46,7 +47,7 @@ def init_test(q, conn, stream, google=False):
 
     if google:
         # See: http://code.google.com/apis/talk/jep_extensions/jingleinfo.html
-        expected.append(EventPattern('stream-iq', query_ns='google:jingleinfo',
+        expected.append(EventPattern('stream-iq', query_ns=ns.GOOGLE_JINGLE_INFO,
                 to='test at localhost'))
 
     events = q.expect_many(*expected)



More information about the telepathy-commits mailing list