Ignore:
Timestamp:
15 Feb 2013, 09:47:34 (12 years ago)
Author:
Henrik Bettermann
Message:

In Okene ug students start clearance with activation code and nce students without.

File:
1 edited

Legend:

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

    r9943 r9953  
    314314            name='upload_passportuploadedit').click()
    315315        self.browser.open(self.student_path + '/start_clearance')
    316         # In Okene the students can just start clearance without entering
    317         # an activation code.
     316        # In Okene the ug students start clearance with activation code ...
     317        self.assertTrue('Activation Code:' in self.browser.contents)
    318318        self.browser.getControl("Start clearance now").click()
    319         self.assertMatches('...Clearance process has been started...',
    320                            self.browser.contents)
     319        self.assertTrue('Activation code is invalid' in self.browser.contents)
     320        # ... and nce students without.
     321        self.certificate.study_mode = 'nce_ft'
     322        self.browser.open(self.student_path + '/start_clearance')
     323        self.assertFalse('Activation Code:' in self.browser.contents)
     324        self.browser.getControl("Start clearance now").click()
     325        self.assertTrue(
     326            'Clearance process has been started' in self.browser.contents)
    321327
    322328    def test_student_accommodation(self):
Note: See TracChangeset for help on using the changeset viewer.