Changeset 7923 for main/waeup.kofa/trunk
- Timestamp:
- 20 Mar 2012, 00:53:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_schoolgrades.py
r7922 r7923 1 1 # Tests for schoolgrades module. 2 2 import unittest 3 from zope.component import getGlobalSiteManager 3 4 from zope.interface.verify import verifyObject, verifyClass 4 from waeup.kofa.interfaces import IResultEntry, IResultEntryField 5 from zope.schema.interfaces import ConstraintNotSatisfied 6 from waeup.kofa.interfaces import IResultEntry, IResultEntryField, IKofaUtils 5 7 from waeup.kofa.schoolgrades import ResultEntry, ResultEntryField 8 from waeup.kofa.utils.utils import KofaUtils 6 9 7 10 class ResultEntryTests(unittest.TestCase): 8 11 9 12 def setUp(self): 10 from waeup.kofa.interfaces import IKofaUtils11 from waeup.kofa.utils.utils import KofaUtils12 from zope.component import getGlobalSiteManager13 13 self.utils = KofaUtils() 14 14 self.gsm = getGlobalSiteManager() … … 42 42 # we do not accept values not stored in KofaUtils 43 43 item = ResultEntry() 44 from zope.schema.interfaces import ConstraintNotSatisfied45 44 self.assertRaises( 46 45 ConstraintNotSatisfied, ResultEntry, 'invalid', 'invalid')
Note: See TracChangeset for help on using the changeset viewer.