diff pylons_app/tests/functional/test_admin_settings.py @ 533:53aa1ee1af86

updated tests for new version 6char password etc...
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 01 Oct 2010 02:04:32 +0200
parents fefffd6fd5f4
children 12c976209b2e
line wrap: on
line diff
--- a/pylons_app/tests/functional/test_admin_settings.py	Fri Oct 01 01:16:27 2010 +0200
+++ b/pylons_app/tests/functional/test_admin_settings.py	Fri Oct 01 02:04:32 2010 +0200
@@ -78,7 +78,7 @@
         response = self.app.post(url('admin_settings_my_account_update'), params=dict(
                                                             _method='put',
                                                             username='test_admin',
-                                                            new_password='test',
+                                                            new_password='test12',
                                                             name='NewName',
                                                             lastname='NewLastname',
                                                             email=new_email,))
@@ -91,7 +91,7 @@
         response = self.app.post(url('admin_settings_my_account_update'), params=dict(
                                                             _method='put',
                                                             username='test_admin',
-                                                            new_password='test',
+                                                            new_password='test12',
                                                             name='NewName',
                                                             lastname='NewLastname',
                                                             email=new_email,))
@@ -101,13 +101,13 @@
         
         
     def test_my_account_update_err(self):
-        self.log_user()
+        self.log_user('test_regular2', 'test12')
                 
         new_email = 'newmail.pl'
         response = self.app.post(url('admin_settings_my_account_update'), params=dict(
                                                             _method='put',
-                                                            username='test_regular2',
-                                                            new_password='test',
+                                                            username='test_admin',
+                                                            new_password='test12',
                                                             name='NewName',
                                                             lastname='NewLastname',
                                                             email=new_email,))