Commit 061d2e99 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use getPTID to generate a PTID for testing purpose.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2308 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e03829a3
......@@ -136,7 +136,7 @@ class ProtocolTests(NeoTestBase):
def test_19_answerLastIDs(self):
oid = self.getNextTID()
tid = self.getNextTID()
ptid = self.getNextTID()
ptid = self.getPTID()
p = Packets.AnswerLastIDs(oid, tid, ptid)
loid, ltid, lptid = p.decode()
self.assertEqual(loid, oid)
......@@ -147,7 +147,7 @@ class ProtocolTests(NeoTestBase):
self.assertEqual(Packets.AskPartitionTable().decode(), ())
def test_21_answerPartitionTable(self):
ptid = self.getNextTID()
ptid = self.getPTID()
uuid1 = self.getNewUUID()
uuid2 = self.getNewUUID()
uuid3 = self.getNewUUID()
......@@ -160,7 +160,7 @@ class ProtocolTests(NeoTestBase):
self.assertEqual(p_cell_list, cell_list)
def test_22_sendPartitionTable(self):
ptid = self.getNextTID()
ptid = self.getPTID()
uuid1 = self.getNewUUID()
uuid2 = self.getNewUUID()
uuid3 = self.getNewUUID()
......@@ -173,7 +173,7 @@ class ProtocolTests(NeoTestBase):
self.assertEqual(p_cell_list, cell_list)
def test_23_notifyPartitionChanges(self):
ptid = self.getNextTID()
ptid = self.getPTID()
uuid1 = self.getNewUUID()
uuid2 = self.getNewUUID()
cell_list = [(0, uuid1, CellStates.UP_TO_DATE),
......
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