Commit 979dfce4 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix a typo in property name.

This made it impossible to detect when a storage didn't contain an object.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2218 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 406f4572
......@@ -235,7 +235,7 @@ class VerificationManager(BaseServiceHandler):
app = self.app
if not self._gotAnswerFrom(uuid):
return
app.object_present = False
app._object_present = False
def connectionCompleted(self, conn):
pass
......
......@@ -217,17 +217,17 @@ class MasterVerificationTests(NeoTestBase):
# do nothing as asking_uuid_dict is True
conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_set), 0)
self.app.object_present = True
self.assertTrue(self.app.object_present)
self.app._object_present = True
self.assertTrue(self.app._object_present)
verification.oidNotFound(conn, "msg")
self.assertTrue(self.app.object_present)
self.assertTrue(self.app._object_present)
# do work as asking_uuid_dict is False
conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_set), 0)
self.verification._uuid_set.add(uuid)
self.assertTrue(self.app.object_present)
self.assertTrue(self.app._object_present)
verification.oidNotFound(conn, "msg")
self.assertFalse(self.app.object_present)
self.assertFalse(self.app._object_present)
self.assertTrue(uuid not in self.verification._uuid_set)
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment