- Timestamp:
- 20 Jul 2012, 09:49:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9024 r9030 767 767 self.browser.getControl(name="transition").value = ['return'] 768 768 self.browser.getControl("Save").click() 769 return 770 771 def test_manage_pg_workflow(self): 772 # Managers can pass through the whole workflow 773 IWorkflowState(self.student).setState('school fee paid') 774 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 775 student = self.app['students'][self.student_id] 776 self.browser.open(self.manage_student_path) 777 self.assertTrue('<option value="reset6">' in self.browser.contents) 778 self.assertTrue('<option value="register_courses">' in self.browser.contents) 779 self.assertTrue('<option value="reset5">' in self.browser.contents) 780 self.certificate.study_mode = 'pg_ft' 781 self.browser.open(self.manage_student_path) 782 self.assertFalse('<option value="reset6">' in self.browser.contents) 783 self.assertFalse('<option value="register_courses">' in self.browser.contents) 784 self.assertTrue('<option value="reset5">' in self.browser.contents) 769 785 return 770 786
Note: See TracChangeset for help on using the changeset viewer.