[Telepathy-commits] [telepathy-gabble/master] test-olpc-bundle.py: use more ns.py namespaces
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Oct 20 05:18:37 PDT 2008
---
tests/twisted/olpc/test-olpc-bundle.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/olpc/test-olpc-bundle.py b/tests/twisted/olpc/test-olpc-bundle.py
index 1d683b7..84e5ea3 100644
--- a/tests/twisted/olpc/test-olpc-bundle.py
+++ b/tests/twisted/olpc/test-olpc-bundle.py
@@ -26,12 +26,12 @@ def test(q, bus, conn, stream):
m['from'] = 'alice at jabber.laptop.org'
m['id'] = '1'
query = m.addElement('query')
- query['xmlns'] = 'http://jabber.org/protocol/disco#info'
+ query['xmlns'] = ns.DISCO_INFO
stream.send(m)
# wait for disco response
event = q.expect('stream-iq', iq_type='result',
- query_ns='http://jabber.org/protocol/disco#info',
+ query_ns=ns.DISCO_INFO,
to='alice at jabber.laptop.org')
features = set([str(f['var']) for f in xpath.queryForNodes('/iq/query/feature',
@@ -56,12 +56,12 @@ def test(q, bus, conn, stream):
m['from'] = 'alice at jabber.laptop.org'
m['id'] = '2'
query = m.addElement('query')
- query['xmlns'] = 'http://jabber.org/protocol/disco#info'
+ query['xmlns'] = ns.DISCO_INFO
stream.send(m)
# wait for disco response
event = q.expect('stream-iq', iq_type='result',
- query_ns='http://jabber.org/protocol/disco#info',
+ query_ns=ns.DISCO_INFO,
to='alice at jabber.laptop.org')
assert event.stanza['id'] == '2'
--
1.5.6.5
More information about the Telepathy-commits
mailing list