Changeset 9138 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 31 Aug 2012, 21:35:09 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 2 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 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py
r9137 r9138 308 308 error = self.student.transfer(self.certificate2, 309 309 current_session=2013) 310 self.assertTrue(error == - 2)310 self.assertTrue(error == -3) 311 311 self.assertEqual([i for i in self.student.keys()], 312 312 [u'accommodation', u'payments', u'studycourse',
Note: See TracChangeset for help on using the changeset viewer.