Commit e5967e88 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix test realism.

loadBefore(oid, tid1) must never return tid2 revision.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2484 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2aa6ae07
......@@ -337,6 +337,7 @@ class ClientApplicationTests(NeoUnitTestBase):
oid = self.makeOID()
tid1 = self.makeTID(1)
tid2 = self.makeTID(2)
tid3 = self.makeTID(3)
# object not found in NEO -> NEOStorageDoesNotExistError
self.assertTrue(oid not in mq)
packet = Errors.OidDoesNotExist('')
......@@ -376,7 +377,7 @@ class ClientApplicationTests(NeoUnitTestBase):
})
app.cp = Mock({ 'getConnForCell' : conn})
app.local_var.asked_object = another_object
result = app.loadBefore(oid, tid1)
result = app.loadBefore(oid, tid3)
self.assertEquals(result, ('RIGHT', tid1, tid2))
self.checkAskObject(conn)
self.assertTrue(oid in mq)
......
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