Ignore:
Timestamp:
12 Jan 2014, 18:44:14 (11 years ago)
Author:
Henrik Bettermann
Message:

Flash message if student record is created.

File:
1 edited

Legend:

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

    r10874 r10895  
    566566        return
    567567
     568    def test_message_for_created(self):
     569        IWorkflowState(self.applicant).setState('created')
     570        self.applicant.student_id = u'my id'
     571        self.browser.open(self.login_path)
     572        self.login()
     573        self.assertTrue(
     574            'You logged in.' in self.browser.contents)
     575        self.assertTrue(
     576            '<strong>Congratulations!</strong> You have been provisionally'
     577            ' admitted and your student record has been created for you.'
     578            in self.browser.contents)
     579        self.assertTrue(
     580            'Then enter your new student credentials: user name= my id,'
     581            ' password = %s.' % self.applicant.application_number
     582            in self.browser.contents)
     583        return
     584
    568585    def image_url(self, filename):
    569586        return self.edit_path.replace('edit', filename)
Note: See TracChangeset for help on using the changeset viewer.