diff idavoll/test/test_gateway.py @ 185:9038908dc2f5

Add gateway support for retrieving items from a node. Reorder gateway module.
author Ralph Meijer <ralphm@ik.nu>
date Tue, 15 Apr 2008 17:32:56 +0000
parents c21b986cff30
children 365fd3e4daf8
line wrap: on
line diff
--- a/idavoll/test/test_gateway.py	Fri Apr 11 14:48:32 2008 +0000
+++ b/idavoll/test/test_gateway.py	Tue Apr 15 17:32:56 2008 +0000
@@ -148,3 +148,17 @@
         self.assertFailure(d, error.Error)
         d.addCallback(cb)
         return d
+
+    def test_items(self):
+        def cb(response):
+            xmppURI = response['uri']
+            d = self.client.items(xmppURI)
+            return d
+
+        def cb2(result):
+            return
+
+        d = self.client.publish(entry)
+        d.addCallback(cb)
+        d.addCallback(cb2)
+        return d