diff MoinMoin/_tests/test_request.py @ 895:eb465f4d2af0

fixed underscore issues in test_request
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 06 Jul 2006 21:33:27 +0200
parents ba1b39629510
children cd5c2aed0c31
line wrap: on
line diff
--- a/MoinMoin/_tests/test_request.py	Thu Jul 06 21:24:18 2006 +0200
+++ b/MoinMoin/_tests/test_request.py	Thu Jul 06 21:33:27 2006 +0200
@@ -64,11 +64,11 @@
         normalized, order is important!
         """
         cases = (
-            (u'_________', u''),
-            (u'__a', u'a'),
-            (u'a__', u'a'),
-            (u'a__b__c', u'a b c'),
-            (u'a__b__/__c__d__/__e__f', u'a b/c d/e f'),
+            (u'         ', u''),
+            (u'  a', u'a'),
+            (u'a  ', u'a'),
+            (u'a  b  c', u'a b c'),
+            (u'a  b  /  c  d  /  e  f', u'a b/c d/e f'),
             )
         for test, expected in cases:
             result = self.request.normalizePagename(test)
@@ -142,12 +142,6 @@
         name = expected = u'דף עברי'
         self.runTest(name, expected)
 
-    def testUnderscore(self):
-        """ request: getPageNameFromQueryString: under_score """
-        name = u'page_name'
-        expected = u'page name'
-        self.runTest(name, expected)
-
     def runTest(self, name, expected):
         import urllib
         # query as made by most browsers when you type the url into the