Changeset 8853 for main/waeup.kofa/trunk/src/waeup/kofa/mandates
- Timestamp:
- 29 Jun 2012, 17:28:06 (13 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
r8849 r8853 68 68 msg = _('Mandate expired.') 69 69 if self._setStudentPassword(): 70 msg = _('Password has been successfully set.') 70 msg = _('Password has been successfully set. ' 71 'Proceed to the login page and enter your credentials.') 71 72 del self.__parent__[self.mandate_id] 72 73 return msg -
main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py
r8850 r8853 104 104 msg = mandate.execute() 105 105 # Password has been set. 106 self.assertEqual(msg, u'Password has been successfully set.') 106 self.assertEqual(msg, 'Password has been successfully set. Proceed to ' 107 'the login page and enter your credentials.') 107 108 self.assertTrue(IUserAccount(student).checkPassword('mypwd1')) 108 109 # All mandates have been removed. … … 132 133 % mandate.mandate_id) 133 134 # Password has been set. 134 self.assertTrue('Password has been successfully set.' 135 self.assertTrue('Password has been successfully set. Proceed to ' 136 'the login page and enter your credentials.' 135 137 in self.browser.contents) 136 138 self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
Note: See TracChangeset for help on using the changeset viewer.