Commit a83461a5 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Update tests according to bug fix done in r407 & r408


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@409 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 90dd2fe1
......@@ -717,7 +717,7 @@ class ClientApplicationTest(unittest.TestCase):
# undo 1 -> no previous revision
u1p1, u1p2 = Packet(), Packet()
u1p1.answerTransactionInformation(1, tid1, '', '', '', (oid1, ))
u1p2.answerObject(1, oid1, tid1, INVALID_SERIAL, 0, 0, 'O1V1')
u1p2.oidNotFound(1, 'oid not found')
# undo 2 -> not end tid
u2p1, u2p2 = Packet(), Packet()
u2p1.answerTransactionInformation(1, tid2, '', '', '', (oid2, ))
......@@ -817,12 +817,11 @@ class ClientApplicationTest(unittest.TestCase):
app.cp = Mock({ 'getConnForNode': conn})
result = app.history(oid)
self.assertEquals(len(result), 2)
self.assertEquals(result[0]['serial'], tid1)
self.assertEquals(result[1]['serial'], tid2)
self.assertEquals(result[0]['tid'], tid1)
self.assertEquals(result[1]['tid'], tid2)
self.assertEquals(result[0]['size'], 42)
self.assertEquals(result[1]['size'], 42)
# def test_connectToPrimaryMasterNode(self):
# raise NotImplementedError
# app = getApp()
......
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