Ignore:
Timestamp:
24 Feb 2017, 09:25:22 (8 years ago)
Author:
Henrik Bettermann
Message:

Replace maxCreditsExceeded by warnCreditsOOR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py

    r14566 r14586  
    3737        course = grok.Model()
    3838        course.credits = 18
    39         max_credits = students_utils.maxCreditsExceeded(studylevel, course)
    40         self.assertEqual(max_credits, 0)
     39        warning = students_utils.warnCreditsOOR(studylevel, course)
     40        self.assertEqual(warning, None)
    4141        course.credits = 19
    42         max_credits = students_utils.maxCreditsExceeded(studylevel, course)
    43         self.assertEqual(max_credits, 58)
     42        warning = students_utils.warnCreditsOOR(studylevel, course)
     43        self.assertEqual(warning, 'Maximum credits exceeded.')
    4444        return
    4545
Note: See TracChangeset for help on using the changeset viewer.