Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
test_utils.TestUniqueIDGenerator Class Reference

List of all members.

Public Member Functions

def setup_method
def testGeneration
def testStack
def testDocuments

Public Attributes


Detailed Description

Definition at line 12 of file

Member Function Documentation

def test_utils.TestUniqueIDGenerator.setup_method (   self,

Definition at line 14 of file

00015     def setup_method(self, method):
00016         self.uid_gen = utils.UniqueIDGenerator('TestPage')

Definition at line 28 of file

00029     def testDocuments(self):
00030         py.test.skip("TODO: needs implementation")

Definition at line 17 of file

00018     def testGeneration(self):
00019         TESTCASES = [('somebase', 'somebase'), ('other', 'other'),
00020                      ('somebase', 'somebase-1'), ('another', 'another'),
00021                      ('other', 'other-1'), ('other', 'other-2'),
00022                      ('somebase', 'somebase-2')]
00023         for base, expected in TESTCASES:
00024             assert self.uid_gen(base) == expected

Definition at line 25 of file

00026     def testStack(self):
00027         py.test.skip("TODO: needs implementation")

Member Data Documentation

Definition at line 15 of file

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