diff options
| author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-22 14:42:12 +0000 |
|---|---|---|
| committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-26 09:57:09 +0000 |
| commit | 8a7399906b40e99b6a0b5b3a7eff0879f7cca361 (patch) | |
| tree | 06df8aa7c046e0387936feeba55fbe1b0304e349 | |
| parent | ecee60dfc33f05e56eb2d2b34faf188943ff8931 (diff) | |
tests: use ns.GOOGLE_JINGLE_INFO constant
| -rw-r--r-- | tests/twisted/jingle/google-relay.py | 2 | ||||
| -rw-r--r-- | 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 2ac72a2dd..b3824db0e 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@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 6b69ea3a6..54c52ba9c 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@localhost')) events = q.expect_many(*expected) |
