Ignore:
Timestamp:
2 Nov 2012, 06:58:29 (12 years ago)
Author:
Henrik Bettermann
Message:

Split student access test.

File:
1 edited

Legend:

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

    r9486 r9503  
    17261726            '...You logged in...', self.browser.contents)
    17271727
    1728     def test_student_access(self):
     1728    def test_student_clearance(self):
    17291729        # Student cant login if their password is not set
    17301730        IWorkflowInfo(self.student).fireTransition('admit')
     
    18211821        self.assertMatches('...The requested form is locked...',
    18221822                           self.browser.contents)
     1823
     1824    def test_student_course_registration(self):
     1825        # Student cant login if their password is not set
     1826        IWorkflowInfo(self.student).fireTransition('admit')
     1827        self.browser.open(self.login_path)
     1828        self.browser.getControl(name="form.login").value = self.student_id
     1829        self.browser.getControl(name="form.password").value = 'spwd'
     1830        self.browser.getControl("Login").click()
    18231831        # Student can't add study level if not in state 'school fee paid'
    18241832        self.browser.open(self.student_path + '/studycourse/add')
     
    18261834                           self.browser.contents)
    18271835        # ... and must be transferred first
    1828         IWorkflowInfo(self.student).fireTransition('clear')
    1829         IWorkflowInfo(self.student).fireTransition('pay_first_school_fee')
     1836        IWorkflowState(self.student).setState('school fee paid')
    18301837        # Now students can add the current study level
    18311838        self.browser.getLink("Study Course").click()
Note: See TracChangeset for help on using the changeset viewer.