comparison 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
comparison
equal deleted inserted replaced
184:bd88658dbca3 185:9038908dc2f5
146 146
147 d = self.client.subscribe('xmpp:%s?node=test' % componentJID) 147 d = self.client.subscribe('xmpp:%s?node=test' % componentJID)
148 self.assertFailure(d, error.Error) 148 self.assertFailure(d, error.Error)
149 d.addCallback(cb) 149 d.addCallback(cb)
150 return d 150 return d
151
152 def test_items(self):
153 def cb(response):
154 xmppURI = response['uri']
155 d = self.client.items(xmppURI)
156 return d
157
158 def cb2(result):
159 return
160
161 d = self.client.publish(entry)
162 d.addCallback(cb)
163 d.addCallback(cb2)
164 return d