changeset 4727:9b6b7ff7f5ac

fix system pages group tests, fix pep8 issue
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 01 Jun 2009 13:33:52 +0200
parents be20177b2c0e
children d887cc013e76
files MoinMoin/_tests/test_wikiutil.py MoinMoin/theme/__init__.py
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_wikiutil.py	Sun May 31 10:47:03 2009 +0200
+++ b/MoinMoin/_tests/test_wikiutil.py	Mon Jun 01 13:33:52 2009 +0200
@@ -85,15 +85,8 @@
             assert wikiutil.join_wiki(baseurl, pagename) == url
 
 
-class TestSystemPagesGroup:
-    def testSystemPagesGroupNotEmpty(self):
-        assert self.request.dicts.members('SystemPagesGroup')
-
 class TestSystemPage:
     systemPages = (
-        # First level, on SystemPagesGroup
-        'SystemPagesInEnglishGroup',
-        # Second level, on one of the pages above
         'RecentChanges',
         'TitleIndex',
         )
--- a/MoinMoin/theme/__init__.py	Sun May 31 10:47:03 2009 +0200
+++ b/MoinMoin/theme/__init__.py	Mon Jun 01 13:33:52 2009 +0200
@@ -1011,7 +1011,7 @@
             if action == 'SubscribeUser' and not request.user.may.admin(page.page_name):
                 data['action'] = 'show'
                 data['disabled'] = disabled
-            
+
             # Despam action enabled only for superusers
             if action == 'Despam' and not request.user.isSuperUser():
                 data['action'] = 'show'