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): ...@@ -235,7 +235,7 @@ class VerificationManager(BaseServiceHandler):
app = self.app app = self.app
if not self._gotAnswerFrom(uuid): if not self._gotAnswerFrom(uuid):
return return
app.object_present = False app._object_present = False
def connectionCompleted(self, conn): def connectionCompleted(self, conn):
pass pass
......
...@@ -217,17 +217,17 @@ class MasterVerificationTests(NeoTestBase): ...@@ -217,17 +217,17 @@ class MasterVerificationTests(NeoTestBase):
# do nothing as asking_uuid_dict is True # do nothing as asking_uuid_dict is True
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_set), 0) self.assertEquals(len(self.verification._uuid_set), 0)
self.app.object_present = True self.app._object_present = True
self.assertTrue(self.app.object_present) self.assertTrue(self.app._object_present)
verification.oidNotFound(conn, "msg") verification.oidNotFound(conn, "msg")
self.assertTrue(self.app.object_present) self.assertTrue(self.app._object_present)
# do work as asking_uuid_dict is False # do work as asking_uuid_dict is False
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_set), 0) self.assertEquals(len(self.verification._uuid_set), 0)
self.verification._uuid_set.add(uuid) self.verification._uuid_set.add(uuid)
self.assertTrue(self.app.object_present) self.assertTrue(self.app._object_present)
verification.oidNotFound(conn, "msg") 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) self.assertTrue(uuid not in self.verification._uuid_set)
if __name__ == '__main__': 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