[Telepathy-commits] [telepathy-gabble/master] current-activity.py: use ns.py

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Oct 20 03:43:56 PDT 2008


---
 tests/twisted/olpc/current-activity.py |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/tests/twisted/olpc/current-activity.py b/tests/twisted/olpc/current-activity.py
index f59341c..3c23be1 100644
--- a/tests/twisted/olpc/current-activity.py
+++ b/tests/twisted/olpc/current-activity.py
@@ -13,19 +13,7 @@ from twisted.words.xish import domish, xpath
 from util import (announce_gadget, send_buddy_changed_current_act_msg,
     answer_to_current_act_pubsub_request, answer_error_to_pubsub_request,
     send_gadget_current_activity_changed_msg, request_random_activity_view)
-
-NS_OLPC_BUDDY_PROPS = "http://laptop.org/xmpp/buddy-properties"
-NS_OLPC_ACTIVITIES = "http://laptop.org/xmpp/activities"
-NS_OLPC_CURRENT_ACTIVITY = "http://laptop.org/xmpp/current-activity"
-NS_OLPC_ACTIVITY_PROPS = "http://laptop.org/xmpp/activity-properties"
-NS_OLPC_BUDDY = "http://laptop.org/xmpp/buddy"
-NS_OLPC_ACTIVITY = "http://laptop.org/xmpp/activity"
-
-NS_PUBSUB = "http://jabber.org/protocol/pubsub"
-NS_DISCO_INFO = "http://jabber.org/protocol/disco#info"
-NS_DISCO_ITEMS = "http://jabber.org/protocol/disco#items"
-NS_AMP = "http://jabber.org/protocol/amp"
-NS_STANZA = "urn:ietf:params:xml:ns:xmpp-stanzas"
+import ns
 
 def test(q, bus, conn, stream):
     conn.Connect()
@@ -34,7 +22,7 @@ def test(q, bus, conn, stream):
         EventPattern('dbus-signal', signal='StatusChanged', args=[0, 1]),
         EventPattern('stream-iq', to=None, query_ns='vcard-temp',
             query_name='vCard'),
-        EventPattern('stream-iq', to='localhost', query_ns=NS_DISCO_ITEMS))
+        EventPattern('stream-iq', to='localhost', query_ns=ns.DISCO_ITEMS))
 
     acknowledge_iq(stream, iq_event.stanza)
     announce_gadget(q, stream, disco_event.stanza)
-- 
1.5.6.5




More information about the Telepathy-commits mailing list