- Timestamp:
- 24 Feb 2017, 09:28:31 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_utils.py
r13535 r14587 1 1 # -*- coding: utf-8 -*- 2 import grok 2 3 from hurry.workflow.interfaces import IWorkflowState 3 4 from zope.component import getUtility … … 86 87 self.assertEqual(msg, 'No certificate assigned.') 87 88 return 89 90 def test_maxCreditsExceeded(self): 91 students_utils = getUtility(IStudentsUtils) 92 studylevel = grok.Container() 93 studylevel.total_credits = 60 94 course = grok.Model() 95 course.credits = 88 96 warning = students_utils.warnCreditsOOR(studylevel, course) 97 self.assertEqual(warning, None) 98 return
Note: See TracChangeset for help on using the changeset viewer.