- Timestamp:
- 31 Aug 2012, 21:35:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9124 r9138 1948 1948 'K1000000 - account activated' in logcontent) 1949 1949 1950 def test_student_transfer(self): 1951 # Add second certificate 1952 self.certificate2 = createObject('waeup.Certificate') 1953 self.certificate2.code = u'CERT2' 1954 self.certificate2.study_mode = 'ug_ft' 1955 self.certificate2.start_level = 999 1956 self.certificate2.end_level = 999 1957 self.app['faculties']['fac1']['dep1'].certificates.addCertificate( 1958 self.certificate2) 1959 1960 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 1961 self.browser.open(self.student_path) 1962 self.browser.getLink("Transfer").click() 1963 self.browser.getControl(name="form.certificate").value = ['CERT2'] 1964 self.browser.getControl(name="form.current_session").value = ['2011'] 1965 self.browser.getControl(name="form.current_level").value = ['200'] 1966 self.browser.getControl("Transfer").click() 1967 self.assertTrue( 1968 'Current level does not match certificate levels' 1969 in self.browser.contents) 1970 self.browser.getControl(name="form.current_level").value = ['999'] 1971 self.browser.getControl("Transfer").click() 1972 self.assertTrue('Successfully transferred' in self.browser.contents) 1973 1950 1974 class StudentRequestPWTests(StudentsFullSetup): 1951 1975 # Tests for student registration
Note: See TracChangeset for help on using the changeset viewer.