Ignore:
Timestamp:
22 Jun 2013, 21:39:00 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove futminna customizations which are not applicable here.

File:
1 edited

Legend:

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

    r10340 r10350  
    328328        fd = storage.getFile(file_id)
    329329        self.assertTrue(fd is None)
    330 
    331     def test_certificate_source(self):
    332         # We add a second 'alternative' certificate
    333         certificate = createObject('waeup.Certificate')
    334         certificate.code = 'CERT2'
    335         certificate.title = 'New Certificate'
    336         certificate.application_category = 'basic'
    337         self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
    338             certificate)
    339         self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    340         self.browser.open(self.edit_path)
    341         self.assertFalse('course2' in self.browser.contents)
    342         self.certificate.custom_textline_1 = u'Maths, Physics'
    343         self.certificate.custom_float_1 = 50.0
    344         certificate.custom_textline_1 = u'German, Physics'
    345         certificate.custom_float_1 = 30.0
    346         notify(grok.ObjectModifiedEvent(certificate))
    347         self.browser.open(self.edit_path)
    348         # Score must be set and below the limit
    349         # of course1 to see course2 field
    350         self.applicant.jamb_score = 20
    351         self.browser.open(self.edit_path)
    352         self.assertTrue('course2' in self.browser.contents)
    353         # But 20 is not enough to select the alternative CERT2
    354         self.assertFalse(
    355             'value="CERT2">CERT2 - New Certificate'
    356             in self.browser.contents)
    357         self.applicant.jamb_score = 30
    358         self.browser.open(self.edit_path)
    359         # 30 is enough
    360         self.assertTrue('course2' in self.browser.contents)
    361         self.assertTrue(
    362             'value="CERT2">CERT2 - New Certificate [German, Physics, 30]</option>'
    363             in self.browser.contents)
    364 
    365     def test_low_jamb_score(self):
    366         self.login()
    367         self.assertFalse('<select id="form.course2" name="form.course2" size="1" >'
    368             in self.browser.contents)
    369         self.certificate.custom_textline_1 = u'Maths, Physics'
    370         self.certificate.custom_float_1 = 50.0
    371         self.applicant.jamb_score = 40
    372         self.browser.open(self.edit_path)
    373         self.assertTrue('<select id="form.course2" name="form.course2" size="1" >'
    374             in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.