changeset 4199:04c37245e12d

Fix tests: wikiutil.normalize_pagename (missing 2nd param, missing import)
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 02 Jul 2008 16:50:59 +0200
parents 988b2b672219
children c21991eed9c9
files MoinMoin/_tests/test_wikiutil.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_wikiutil.py	Mon Jun 30 12:00:33 2008 +0200
+++ b/MoinMoin/_tests/test_wikiutil.py	Wed Jul 02 16:50:59 2008 +0200
@@ -9,7 +9,7 @@
 
 import py
 
-from MoinMoin import wikiutil
+from MoinMoin import config, wikiutil
 
 
 class TestQueryStringSupport:
@@ -963,7 +963,7 @@
         """
         test = u'\u0000\u202a\u202b\u202c\u202d\u202e'
         expected = u''
-        result = wikiutil.normalize_pagename(test)
+        result = wikiutil.normalize_pagename(test, self.request.cfg)
         assert result == expected
 
     def testNormalizeSlashes(self):
@@ -976,7 +976,7 @@
             (u'a b/////c d/////e f', u'a b/c d/e f'),
             )
         for test, expected in cases:
-            result = wikiutil.normalize_pagename(test)
+            result = wikiutil.normalize_pagename(test, self.request.cfg)
             assert result == expected
 
     def testNormalizeWhitespace(self):
@@ -991,7 +991,7 @@
             (config.chars_spaces, u''),
             )
         for test, expected in cases:
-            result = wikiutil.normalize_pagename(test)
+            result = wikiutil.normalize_pagename(test, self.request.cfg)
             assert result == expected
 
     def testUnderscoreTestCase(self):
@@ -1008,7 +1008,7 @@
             (u'a  b  /  c  d  /  e  f', u'a b/c d/e f'),
             )
         for test, expected in cases:
-            result = wikiutil.normalize_pagename(test)
+            result = wikiutil.normalize_pagename(test, self.request.cfg)
             assert result == expected
 
 class TestGroupPages(object):
@@ -1033,7 +1033,7 @@
         for test, expected in cases:
             # validate we are testing valid group names
             if wikiutil.isGroupPage(test, self.request.cfg):
-                result = wikiutil.normalize_pagename(test)
+                result = wikiutil.normalize_pagename(test, self.request.cfg)
                 assert result == expected
 
 coverage_modules = ['MoinMoin.wikiutil']