Ignore:
Timestamp:
18 Jul 2012, 20:24:55 (12 years ago)
Author:
Henrik Bettermann
Message:

We bypass the request_clearance page if student
has been imported in state 'clearance started' and
no clr_code was entered before.

File:
1 edited

Legend:

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

    r9011 r9021  
    922922        self.assertTrue('clearance started' in self.browser.contents)
    923923        self.browser.open(self.history_path)
    924         self.assertTrue("Reset to 'clearance' by My Public Name" in
     924        self.assertTrue("Reset to 'clearance started' by My Public Name" in
    925925            self.browser.contents)
    926926        IWorkflowInfo(self.student).fireTransition('request_clearance')
     
    13041304        self.assertEqual(self.student.state, 'courses registered')
    13051305        return
     1306
     1307    def test_student_clearance_wo_clrcode(self):
     1308        IWorkflowState(self.student).setState('clearance started')
     1309        self.browser.open(self.login_path)
     1310        self.browser.getControl(name="form.login").value = self.student_id
     1311        self.browser.getControl(name="form.password").value = 'spwd'
     1312        self.browser.getControl("Login").click()
     1313        self.student.clearance_locked = False
     1314        self.browser.open(self.edit_clearance_path)
     1315        self.browser.getControl(name="form.date_of_birth").value = '09/10/1961'
     1316        self.browser.getControl("Save and request clearance").click()
     1317        self.assertMatches('...Clearance has been requested...',
     1318                           self.browser.contents)
    13061319
    13071320    def test_manage_payments(self):
Note: See TracChangeset for help on using the changeset viewer.