- Timestamp:
- 24 Feb 2017, 09:25:22 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r14566 r14586 37 37 course = grok.Model() 38 38 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) 41 41 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.') 44 44 return 45 45
Note: See TracChangeset for help on using the changeset viewer.