- Timestamp:
- 3 Oct 2019, 20:47:58 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py
r15027 r15635 189 189 self.assertEqual(self.browser.headers['Status'], '200 Ok') 190 190 191 192 191 def test_final_submit_tpu(self): 193 192 IWorkflowState(self.tpuapplicant).setState('paid') … … 209 208 self.assertTrue( 210 209 'Application submitted' in self.browser.contents) 211 # Create 20 applicants who already selected s0010210 # Create 10 applicants who already selected s0010 212 211 for i in range(1,11): 213 tpuapplicant= createObject(u'waeup.Applicant')214 tpuapplicant.firstname = u'John'215 tpuapplicant.lastname = u'Doe %s' %i216 tpuapplicant.school1 = 's0010'212 dummy = createObject(u'waeup.Applicant') 213 dummy.firstname = u'John' 214 dummy.lastname = u'Doe %s' %i 215 dummy.school1 = 's0010' 217 216 self.app['applicants'][ 218 self.tpucontainer.code].addApplicant( tpuapplicant)219 IWorkflowState( tpuapplicant).setState('submitted')217 self.tpucontainer.code].addApplicant(dummy) 218 IWorkflowState(dummy).setState('submitted') 220 219 IWorkflowState(self.tpuapplicant).setState('paid') 220 self.tpuapplicant.school1 = None 221 221 self.tpuapplicant.locked = False 222 222 self.browser.open(self.tpuapplicant_path + '/edit') 223 self.browser.getControl(name="form.school1").value = ['s0010'] 223 224 self.browser.getControl("Finally Submit").click() 224 225 self.assertTrue("Maximum number of applications per school exceeded."
Note: See TracChangeset for help on using the changeset viewer.