Back to index

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

List of all members.

Public Member Functions

def testCleanInput

Detailed Description

Definition at line 56 of file test_wikiutil.py.


Member Function Documentation

Definition at line 57 of file test_wikiutil.py.

00057 
00058     def testCleanInput(self):
00059         tests = [(u"", u""), # empty
00060                  (u"aaa\r\n\tbbb", u"aaa   bbb"), # ws chars -> blanks
00061                  (u"aaa\x00\x01bbb", u"aaabbb"), # strip weird chars
00062                  (u"a"*500, u""), # too long
00063                 ]
00064         for instr, outstr in tests:
00065             assert wikiutil.clean_input(instr) == outstr
00066 


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