Ignore:
Timestamp:
29 Jan 2013, 08:56:56 (14 years ago)
Author:
Henrik Bettermann
Message:

Do not change level if level exceeds the certificate's end_level.

File:
1 edited

Legend:

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

    r9895 r9922  
    3939from waeup.kofa.app import University
    4040from waeup.kofa.payments.interfaces import IPaymentWebservice
     41from waeup.kofa.students.interfaces import IStudentsUtils
    4142from waeup.kofa.students.student import Student
    4243from waeup.kofa.students.studylevel import StudentStudyLevel
    … …  
    26612662            'Your personal data record is outdated.' in self.browser.contents)
    26622663
     2664    def test_setReturningData(self):
     2665        utils = getUtility(IStudentsUtils)
     2666        self.student['studycourse'].current_level = 600
     2667        utils.setReturningData(self.student)
     2668        # The new level exceeds the certificates end_level.
     2669        # In this case current_level remains unchanged and no error is raised.
     2670        self.assertEqual(self.student['studycourse'].current_level, 600)
     2671
    26632672class StudentRequestPWTests(StudentsFullSetup):
    26642673    # Tests for student registration
Note: See TracChangeset for help on using the changeset viewer.