changeset 3820:2f2c95506713

user tests: remove form hack that is no longer necessary, fix upgrade test
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 08 Jul 2008 13:30:27 +0200
parents b3b04ffbecd8
children 3433428abe41
files MoinMoin/_tests/test_user.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_user.py	Fri Jul 04 12:15:57 2008 +0200
+++ b/MoinMoin/_tests/test_user.py	Tue Jul 08 13:30:27 2008 +0200
@@ -147,8 +147,7 @@
         name = u'/no such user/'
         password = '{SHA}jLIjfQZ5yojbZGTqxg2pY0VROWQ=' # 12345
         self.createUser(name, password, True)
-        self.request.form['password'] = ['12345']
-        theuser = user.User(self.request, name=name)
+        theuser = user.User(self.request, name=name, password='12345')
         assert theuser.enc_password[:6] == '{SSHA}'
 
     # Helpers ---------------------------------------------------------
@@ -156,9 +155,6 @@
     def createUser(self, name, password, pwencoded=False):
         """ helper to create test user
         """
-        # Hack self.request form to contain the password
-        self.request.form['password'] = [password]
-
         # Create user
         self.user = user.User(self.request)
         self.user.name = name