diff MoinMoin/_tests/test_request.py @ 1920:b06ef2a53efa

'make pylint', fixed lots of minor stuff found by pylint (and there is still lots left to do)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Mar 2007 21:50:50 +0200
parents bb2e053067fb
children 1339d6fdc4ff
line wrap: on
line diff
--- a/MoinMoin/_tests/test_request.py	Tue Mar 27 21:50:05 2007 +0200
+++ b/MoinMoin/_tests/test_request.py	Fri Mar 30 21:50:50 2007 +0200
@@ -79,33 +79,32 @@
 
 class GroupPagesTestCase(unittest.TestCase):
 
-   def setUp(self):
-       self.config = TestConfig(self.request,
-                                page_group_regex=r'.+Group')
-
-   def tearDown(self):
-       del self.config
+    def setUp(self):
+        self.config = TestConfig(self.request, page_group_regex=r'.+Group')
 
-   def testNormalizeGroupName(self):
-       """ request: normalize pagename: restrict groups to alpha numeric Unicode
-       
-       Spaces should normalize after invalid chars removed!
-       """
-       import re
-       group = re.compile(r'.+Group', re.UNICODE)
-       cases = (
-           # current acl chars
-           (u'Name,:Group', u'NameGroup'),
-           # remove than normalize spaces
-           (u'Name ! @ # $ % ^ & * ( ) + Group', u'Name Group'),
-           )
-       for test, expected in cases:
-           # validate we are testing valid group names
-           assert group.search(test)
-           result = self.request.normalizePagename(test)
-           self.assertEqual(result, expected,
-                            ('Expected "%(expected)s" but got "%(result)s"') %
-                            locals())
+    def tearDown(self):
+        del self.config
+
+    def testNormalizeGroupName(self):
+        """ request: normalize pagename: restrict groups to alpha numeric Unicode
+        
+        Spaces should normalize after invalid chars removed!
+        """
+        import re
+        group = re.compile(r'.+Group', re.UNICODE)
+        cases = (
+            # current acl chars
+            (u'Name,:Group', u'NameGroup'),
+            # remove than normalize spaces
+            (u'Name ! @ # $ % ^ & * ( ) + Group', u'Name Group'),
+            )
+        for test, expected in cases:
+            # validate we are testing valid group names
+            assert group.search(test)
+            result = self.request.normalizePagename(test)
+            self.assertEqual(result, expected,
+                             ('Expected "%(expected)s" but got "%(result)s"') %
+                             locals())
 
 
 class HTTPDateTests(unittest.TestCase):