Changeset 9139 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 1 Sep 2012, 05:34:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9138 r9139 1958 1958 self.certificate2) 1959 1959 1960 # Add study level to old study course 1961 studylevel = createObject(u'waeup.StudentStudyLevel') 1962 studylevel.level = 200 1963 self.student['studycourse'].addStudentStudyLevel( 1964 self.certificate, studylevel) 1965 1960 1966 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 1961 1967 self.browser.open(self.student_path) … … 1971 1977 self.browser.getControl("Transfer").click() 1972 1978 self.assertTrue('Successfully transferred' in self.browser.contents) 1979 1980 # Add study level to new study course 1981 studylevel = createObject(u'waeup.StudentStudyLevel') 1982 studylevel.level = 200 1983 self.student['studycourse'].addStudentStudyLevel( 1984 self.certificate, studylevel) 1985 1986 # Edit and add pages are locked for old study courses 1987 self.browser.open(self.student_path + '/studycourse/manage') 1988 self.assertFalse('The requested form is locked' in self.browser.contents) 1989 self.browser.open(self.student_path + '/studycourse_1/manage') 1990 self.assertTrue('The requested form is locked' in self.browser.contents) 1991 1992 self.browser.open(self.student_path + '/studycourse/start_session') 1993 self.assertFalse('The requested form is locked' in self.browser.contents) 1994 self.browser.open(self.student_path + '/studycourse_1/start_session') 1995 self.assertTrue('The requested form is locked' in self.browser.contents) 1996 1997 IWorkflowState(self.student).setState('school fee paid') 1998 self.browser.open(self.student_path + '/studycourse/add') 1999 self.assertFalse('The requested form is locked' in self.browser.contents) 2000 self.browser.open(self.student_path + '/studycourse_1/add') 2001 self.assertTrue('The requested form is locked' in self.browser.contents) 2002 2003 self.browser.open(self.student_path + '/studycourse/200/manage') 2004 self.assertFalse('The requested form is locked' in self.browser.contents) 2005 self.browser.open(self.student_path + '/studycourse_1/200/manage') 2006 self.assertTrue('The requested form is locked' in self.browser.contents) 2007 2008 self.browser.open(self.student_path + '/studycourse/200/validate_courses') 2009 self.assertFalse('The requested form is locked' in self.browser.contents) 2010 self.browser.open(self.student_path + '/studycourse_1/200/validate_courses') 2011 self.assertTrue('The requested form is locked' in self.browser.contents) 2012 2013 self.browser.open(self.student_path + '/studycourse/200/reject_courses') 2014 self.assertFalse('The requested form is locked' in self.browser.contents) 2015 self.browser.open(self.student_path + '/studycourse_1/200/reject_courses') 2016 self.assertTrue('The requested form is locked' in self.browser.contents) 2017 2018 self.browser.open(self.student_path + '/studycourse/200/add') 2019 self.assertFalse('The requested form is locked' in self.browser.contents) 2020 self.browser.open(self.student_path + '/studycourse_1/200/add') 2021 self.assertTrue('The requested form is locked' in self.browser.contents) 2022 2023 self.browser.open(self.student_path + '/studycourse/200/edit') 2024 self.assertFalse('The requested form is locked' in self.browser.contents) 2025 self.browser.open(self.student_path + '/studycourse_1/200/edit') 2026 self.assertTrue('The requested form is locked' in self.browser.contents) 1973 2027 1974 2028 class StudentRequestPWTests(StudentsFullSetup):
Note: See TracChangeset for help on using the changeset viewer.