Back to index

plone3  3.1.7
Public Member Functions
Archetypes.tests.test_utils.UidGeneratorTest Class Reference
Inheritance diagram for Archetypes.tests.test_utils.UidGeneratorTest:
Inheritance graph
Collaboration diagram for Archetypes.tests.test_utils.UidGeneratorTest:
Collaboration graph

List of all members.

Public Member Functions

def test_uuid

Detailed Description

Some ppl have reported problems with uids. This test isn't mathematical
correct but should show the issue on plattform. I suspect it's Windows :|

Definition at line 33 of file

Member Function Documentation

Definition at line 38 of file

00039     def test_uuid(self):
00040         uids = {}
00041         loop_length = 10**5 # about 1.5 seconds on a fast cpu
00042         for i in xrange(loop_length):
00043             uid = make_uuid()
00044             uids[uid] = 1
00045         self.failUnlessEqual(len(uids), loop_length)

Here is the call graph for this function:

The documentation for this class was generated from the following file: