Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin._tests.test_wikiutil.TestGroupPages Class Reference

List of all members.

Public Member Functions

def testNormalizeGroupName

Detailed Description

Definition at line 1024 of file test_wikiutil.py.


Member Function Documentation

request: normalize pagename: restrict groups to alpha numeric Unicode

Spaces should normalize after invalid chars removed!

Definition at line 1026 of file test_wikiutil.py.

01026 
01027     def testNormalizeGroupName(self):
01028         """ request: normalize pagename: restrict groups to alpha numeric Unicode
01029 
01030         Spaces should normalize after invalid chars removed!
01031         """
01032         cases = (
01033             # current acl chars
01034             (u'Name,:Group', u'NameGroup'),
01035             # remove than normalize spaces
01036             (u'Name ! @ # $ % ^ & * ( ) + Group', u'Name Group'),
01037             )
01038         for test, expected in cases:
01039             # validate we are testing valid group names
01040             if wikiutil.isGroupPage(test, self.request.cfg):
01041                 result = wikiutil.normalize_pagename(test, self.request.cfg)
01042                 assert result == expected


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