Commit 923350b9 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add helper getPTID to test framework.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1959 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1263563d
......@@ -131,6 +131,12 @@ class NeoTestBase(unittest.TestCase):
tid = pack('!LL', upper, lower)
return tid
def getPTID(self, i=None):
""" Return a 8-bytes PTID """
if i is None:
return os.urandom(4)
return pack('!Q', i)
def getOID(self, i=None):
""" Return a 8-bytes OID """
if i is None:
......
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