Changeset 11681 for main/waeup.kofa/trunk/src/waeup/kofa/mandates
- Timestamp:
- 6 Jun 2014, 12:01:03 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/mandates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py
r11680 r11681 70 70 msg = _('Mandate expired.') 71 71 if self._setPassword(): 72 msg = _('Password has been successfully set.') 72 msg = _('Password has been successfully set. ' 73 'Login with your new password.') 73 74 username = IUserAccount(self.params['user']).name 74 75 grok.getSite().logger.info( -
main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py
r11680 r11681 104 104 msg = mandate.execute() 105 105 # Password has been set. 106 self.assertEqual(msg, 'Password has been successfully set. ')106 self.assertEqual(msg, 'Password has been successfully set. Login with your new password.') 107 107 self.assertTrue(IUserAccount(student).checkPassword('mypwd1')) 108 108 # All mandates have been removed. … … 122 122 msg = mandate.execute() 123 123 # Password has been set. 124 self.assertEqual(msg, 'Password has been successfully set. ')124 self.assertEqual(msg, 'Password has been successfully set. Login with your new password.') 125 125 self.assertTrue(IUserAccount(officer).checkPassword('mypwd1')) 126 126 logfile = os.path.join( … … 138 138 msg = mandate.execute() 139 139 # Password has been set. 140 self.assertEqual(msg, 'Password has been successfully set. ')140 self.assertEqual(msg, 'Password has been successfully set. Login with your new password.') 141 141 self.assertTrue(IUserAccount(applicant).checkPassword('mypwd1')) 142 142 logfile = os.path.join( … … 169 169 % mandate.mandate_id) 170 170 # Password has been set. 171 self.assertTrue('Password has been successfully set. '171 self.assertTrue('Password has been successfully set. Login with your new password.' 172 172 in self.browser.contents) 173 173 self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
Note: See TracChangeset for help on using the changeset viewer.