Ignore:
Timestamp:
31 Aug 2012, 21:35:09 (12 years ago)
Author:
Henrik Bettermann
Message:

Add StudentTransferFormPage?.

Do not show any button on old studycourse (studycourse_1 or studycourse_2) pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9124 r9138  
    19481948                        'K1000000 - account activated' in logcontent)
    19491949
     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
    19501974class StudentRequestPWTests(StudentsFullSetup):
    19511975    # Tests for student registration
Note: See TracChangeset for help on using the changeset viewer.