[Telepathy-commits] [telepathy-gabble/master] test-olpc-set-props-preload.py: assert pubsub stanzas are of the right type

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Aug 19 10:52:50 PDT 2008


20080529121024-7fe3f-88c962cf1a5f04a817561835a42be2e875e1df8c.gz
---
 tests/twisted/olpc/test-olpc-set-props-preload.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/olpc/test-olpc-set-props-preload.py b/tests/twisted/olpc/test-olpc-set-props-preload.py
index d9e774b..a4c8af9 100644
--- a/tests/twisted/olpc/test-olpc-set-props-preload.py
+++ b/tests/twisted/olpc/test-olpc-set-props-preload.py
@@ -18,9 +18,16 @@ def test(q, bus, conn, stream):
 
     # buddy activities
     event = q.expect('stream-iq', iq_type='set', query_name='pubsub')
+    assert xpath.queryForNodes(
+        "/iq[@type='set']/pubsub[@xmlns='http://jabber.org/protocol/pubsub']"
+        "/publish[@node='http://laptop.org/xmpp/activities']", event.stanza)
 
     # activity properties
     event = q.expect('stream-iq', iq_type='set', query_name='pubsub')
+    assert xpath.queryForNodes(
+        "/iq[@type='set']/pubsub[@xmlns='http://jabber.org/protocol/pubsub']"
+        "/publish[@node='http://laptop.org/xmpp/activity-properties']",
+        event.stanza)
 
     # buddy properties
     event = q.expect('stream-iq', iq_type='set', query_name='pubsub')
-- 
1.5.6.3




More information about the Telepathy-commits mailing list