Ignore:
Timestamp:
5 Apr 2012, 14:51:27 (13 years ago)
Author:
uli
Message:

No school grades, no tests for it.

File:
1 edited

Legend:

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

    r8042 r8048  
    759759            '<option selected="selected" value="CERT1">'
    760760            in self.browser.contents)
    761 
    762     def test_school_grades(self):
    763         # we can add school grades
    764         self.login()
    765         self.browser.open(self.edit_path)
    766         self.fill_correct_values() # Fill other fields
    767         # add a new (empty) row with subject/grade
    768         self.browser.getControl(name="form.school_grades.add").click()
    769         # pick first subject (after <no value>)...
    770         ctrl_subj = self.browser.getControl(
    771             name="form.school_grades.0.subject")
    772         ctrl_subj.value = [ctrl_subj.options[1]]
    773         display_subj = ctrl_subj.displayOptions[1]
    774         # pick first grade (after <no value>)...
    775         ctrl_grade = self.browser.getControl(
    776             name="form.school_grades.0.grade")
    777         ctrl_grade.value = [ctrl_grade.options[1]]
    778         display_grade = ctrl_grade.displayOptions[1]
    779         # save everything
    780         self.browser.getControl("Save").click()
    781         self.assertTrue(
    782             '<input type="hidden" name="form.school_grades.count" value="1" />'
    783             in self.browser.contents)
    784         # we can also see the new subject/grade in display view
    785         self.browser.open(self.view_path)
    786         self.assertTrue(
    787             display_subj in self.browser.contents)
    788         self.assertTrue(
    789             display_grade in self.browser.contents)
    790         return
    791761
    792762class ApplicantRegisterTests(ApplicantsFullSetup):
Note: See TracChangeset for help on using the changeset viewer.