Changeset 14227 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 25 Oct 2016, 06:19:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14206 r14227 709 709 print "Sample PDF pg_course_registration_slip.pdf written to %s" % path 710 710 711 def test_student_2nd_semester_course_registration(self): 712 IWorkflowState(self.student).setState('school fee paid') 713 self.course.semester = 2 714 self.browser.open(self.login_path) 715 self.browser.getControl(name="form.login").value = self.student_id 716 self.browser.getControl(name="form.password").value = 'spwd' 717 self.browser.getControl("Login").click() 718 self.browser.getLink("Study Course").click() 719 self.browser.getLink("Add course list").click() 720 self.browser.getControl("Create course list now").click() 721 self.assertFalse('COURSE1' in self.browser.contents) 722 # 2nd semester tickets can't be added manually 723 self.browser.getLink("Edit course list").click() 724 self.browser.getLink("here").click() 725 self.browser.getControl(name="form.course").value = ['COURSE1'] 726 self.browser.getControl("Add course ticket").click() 727 self.assertTrue( 728 'Course COURSE1 cannot be registered. ' 729 'You have to pay for the 2nd semester first.' 730 in self.browser.contents) 731 # 2nd instalment has to be paid first 732 self.certificate.school_fee_3 = 678.0 733 self.browser.open(self.payments_path + '/addop') 734 self.browser.getControl(name="form.p_category").value = ['schoolfee_2'] 735 self.browser.getControl("Create ticket").click() 736 self.student['payments'].values()[0].approve() 737 self.browser.open(self.studycourse_path + '/100/ctadd') 738 self.browser.getControl(name="form.course").value = ['COURSE1'] 739 self.browser.getControl("Add course ticket").click() 740 self.assertTrue('Successfully added COURSE1' in self.browser.contents) 741 return 742 711 743 def test_student_clearance(self): 712 744 # Student cant login if their password is not set
Note: See TracChangeset for help on using the changeset viewer.