- Timestamp:
- 4 Jun 2012, 10:27:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py
r8586 r8622 65 65 self.pgcontainer.code = u'pgft2011' 66 66 self.pgcontainer.prefix = u'pgft' 67 self.pgcontainer.application_category = u'pg_ft' 67 68 self.pgcontainer.year = 2011 68 69 self.pgcontainer.application_fee = 300.0 … … 72 73 self.ugcontainer.code = u'putme2011' 73 74 self.ugcontainer.prefix = u'putme' 75 self.ugcontainer.application_category = u'basic' 74 76 self.ugcontainer.year = 2011 75 77 self.ugcontainer.application_fee = 200.0 … … 87 89 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 88 90 self.certificate) 91 self.certificate2 = createObject('waeup.Certificate') 92 self.certificate2.code = 'CERT2' 93 self.certificate2.application_category = 'pg_ft' 94 self.certificate2.start_level = 100 95 self.certificate2.end_level = 500 96 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 97 self.certificate2) 89 98 90 99 # Add (customized) applicants … … 122 131 self.browser.getControl(name="form.firstname").value = 'John' 123 132 self.browser.getControl(name="form.lastname").value = 'Tester' 124 self.browser.getControl(name="form.course1").value = ['CERT1']125 133 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 126 134 self.browser.getControl(name="form.lga").value = ['foreigner'] … … 152 160 # We can save the applicant 153 161 self.fill_correct_values() 162 self.browser.getControl(name="form.course1").value = ['CERT1'] 154 163 self.browser.getControl("Save").click() 155 164 self.assertMatches('...Form has been saved...', self.browser.contents) … … 170 179 self.assertEqual(self.browser.headers['Status'], '200 Ok') 171 180 self.fill_correct_values() 181 self.browser.getControl(name="form.course1").value = ['CERT1'] 172 182 self.browser.getControl("Save").click() 173 183 self.assertMatches('...Form has been saved...', self.browser.contents) 174 self.fill_correct_values()175 184 self.browser.getControl("Save").click() 176 185 self.browser.getControl("Add online payment ticket").click() … … 191 200 self.assertEqual(self.browser.headers['Status'], '200 Ok') 192 201 self.fill_correct_values() 202 self.browser.getControl(name="form.course1").value = ['CERT2'] 193 203 self.browser.getControl(name="form.reg_number").value = '2345' 194 204 self.browser.getControl(name="form.firstname").value = 'Anna'
Note: See TracChangeset for help on using the changeset viewer.