Ignore:
Timestamp:
6 Jun 2014, 12:01:03 (11 years ago)
Author:
Henrik Bettermann
Message:

Be more verbose.

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  
    7070            msg = _('Mandate expired.')
    7171        if self._setPassword():
    72             msg = _('Password has been successfully set.')
     72            msg = _('Password has been successfully set. '
     73                    'Login with your new password.')
    7374            username = IUserAccount(self.params['user']).name
    7475            grok.getSite().logger.info(
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py

    r11680 r11681  
    104104        msg = mandate.execute()
    105105        # 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.')
    107107        self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
    108108        # All mandates have been removed.
     
    122122        msg = mandate.execute()
    123123        # 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.')
    125125        self.assertTrue(IUserAccount(officer).checkPassword('mypwd1'))
    126126        logfile = os.path.join(
     
    138138        msg = mandate.execute()
    139139        # 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.')
    141141        self.assertTrue(IUserAccount(applicant).checkPassword('mypwd1'))
    142142        logfile = os.path.join(
     
    169169            % mandate.mandate_id)
    170170        # 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.'
    172172            in self.browser.contents)
    173173        self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
Note: See TracChangeset for help on using the changeset viewer.