comparison idavoll/test/test_backend.py @ 187:69cdd8c6a431

Make sure second subscribers through HTTP also get a notification of the last item.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 17 Apr 2008 16:02:22 +0000
parents 07114105885a
children e404775b12df
comparison
equal deleted inserted replaced
186:365fd3e4daf8 187:69cdd8c6a431
130 class testStorage: 130 class testStorage:
131 def get_node(self, node_id): 131 def get_node(self, node_id):
132 return defer.succeed(testNode()) 132 return defer.succeed(testNode())
133 133
134 def cb(data): 134 def cb(data):
135 print [ITEM] == data['items']
136 self.assertEquals('node', data['node_id']) 135 self.assertEquals('node', data['node_id'])
137 self.assertEquals([ITEM], data['items']) 136 self.assertEquals([ITEM], data['items'])
138 self.assertEquals(OWNER, data['subscriber']) 137 self.assertEquals(OWNER, data['subscriber'])
139 138
140 self.storage = testStorage() 139 self.storage = testStorage()