Ignore:
Timestamp:
19 Jun 2012, 07:47:21 (13 years ago)
Author:
Henrik Bettermann
Message:

Use public_name in object histories and when approving payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r8732 r8758  
    900900        self.assertTrue('Student has been cleared' in self.browser.contents)
    901901        self.assertTrue('cleared' in self.browser.contents)
     902        self.browser.open(self.history_path)
     903        self.assertTrue('Cleared by Carlo Pitter' in self.browser.contents)
     904        # Hide real name.
     905        self.app['users']['mrclear'].public_name = 'My Public Name'
     906        self.browser.open(self.clearance_path)
    902907        self.browser.getLink("Reject clearance").click()
    903908        self.assertTrue('Clearance has been annulled' in self.browser.contents)
     
    907912            '/contactstudent?subject=%s' % urlmessage)
    908913        self.assertTrue('clearance started' in self.browser.contents)
     914        self.browser.open(self.history_path)
     915        self.assertTrue("Reset to 'clearance' by My Public Name" in
     916            self.browser.contents)
    909917        IWorkflowInfo(self.student).fireTransition('request_clearance')
    910918        self.browser.open(self.clearance_path)
Note: See TracChangeset for help on using the changeset viewer.