[Neo-report] r2308 gregory - /trunk/neo/tests/testProtocol.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 23 17:00:28 CEST 2010


Author: gregory
Date: Thu Sep 23 17:00:28 2010
New Revision: 2308

Log:
Use getPTID to generate a PTID for testing purpose.

Modified:
    trunk/neo/tests/testProtocol.py

Modified: trunk/neo/tests/testProtocol.py
==============================================================================
--- trunk/neo/tests/testProtocol.py [iso-8859-1] (original)
+++ trunk/neo/tests/testProtocol.py [iso-8859-1] Thu Sep 23 17:00:28 2010
@@ -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),





More information about the Neo-report mailing list