changeset 4823:74216148209d

Groups2009: fix of syntax error for the wikiutil160a.py. Test refinement for the userform.admin
author Dmitrijs Milajevs <dimazest@gmail.com>
date Thu, 25 Jun 2009 15:07:47 +0200
parents d44a9c23438c
children e5ef9d9f9eaa
files MoinMoin/script/migration/wikiutil160a.py MoinMoin/userform/_tests/test_admin.py
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/wikiutil160a.py	Thu Jun 25 14:50:45 2009 +0200
+++ b/MoinMoin/script/migration/wikiutil160a.py	Thu Jun 25 15:07:47 2009 +0200
@@ -649,8 +649,8 @@
     @return: true if page is a system page
     """
     groups = request.groups
-    return (u'SystemPagesGroup' in groups and pagename in groups[u'SystemPagesGroup']) or
-        isTemplatePage(request, pagename))
+    return (u'SystemPagesGroup' in groups and pagename in groups[u'SystemPagesGroup']) or \
+        isTemplatePage(request, pagename)
 
 
 def isTemplatePage(request, pagename):
--- a/MoinMoin/userform/_tests/test_admin.py	Thu Jun 25 14:50:45 2009 +0200
+++ b/MoinMoin/userform/_tests/test_admin.py	Thu Jun 25 15:07:47 2009 +0200
@@ -29,8 +29,7 @@
 
         become_superuser(request)
 
-        assert not User(request, name=user_name).exists()
-        user = User(request, name=user_name, password=user_name).save()
+        User(request, name=user_name, password=user_name).save()
 
     def teardown_class(self):
         nuke_user(self.request, self.user_name)