Ignore:
Timestamp:
20 Mar 2012, 00:53:46 (13 years ago)
Author:
uli
Message:

Clean up imports.

File:
1 edited

Legend:

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

    r7922 r7923  
    11# Tests for schoolgrades module.
    22import unittest
     3from zope.component import getGlobalSiteManager
    34from zope.interface.verify import verifyObject, verifyClass
    4 from waeup.kofa.interfaces import IResultEntry, IResultEntryField
     5from zope.schema.interfaces import ConstraintNotSatisfied
     6from waeup.kofa.interfaces import IResultEntry, IResultEntryField, IKofaUtils
    57from waeup.kofa.schoolgrades import ResultEntry, ResultEntryField
     8from waeup.kofa.utils.utils import KofaUtils
    69
    710class ResultEntryTests(unittest.TestCase):
    811
    912    def setUp(self):
    10         from waeup.kofa.interfaces import IKofaUtils
    11         from waeup.kofa.utils.utils import KofaUtils
    12         from zope.component import getGlobalSiteManager
    1313        self.utils = KofaUtils()
    1414        self.gsm = getGlobalSiteManager()
     
    4242        # we do not accept values not stored in KofaUtils
    4343        item = ResultEntry()
    44         from zope.schema.interfaces import ConstraintNotSatisfied
    4544        self.assertRaises(
    4645            ConstraintNotSatisfied, ResultEntry, 'invalid', 'invalid')
Note: See TracChangeset for help on using the changeset viewer.