- Timestamp:
- 13 Sep 2011, 09:32:46 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/utils/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_batching.py
r6273 r6743 25 25 import shutil 26 26 import tempfile 27 import unittest28 27 from zope import schema 29 from zope.app.testing.functional import FunctionalTestCase30 28 from zope.component import provideUtility 31 29 from zope.component.factory import Factory 32 from zope.component.hooks import setSite,clearSite30 from zope.component.hooks import clearSite 33 31 from zope.component.interfaces import IFactory 34 32 from zope.interface import Interface, implements 35 33 from waeup.sirp.app import University 36 from waeup.sirp.testing import FunctionalLayer, doctestsuite_for_module 37 from waeup.sirp.utils.helpers import attrs_to_fields 34 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase 38 35 39 36 optionflags = ( -
main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_converters.py
r6279 r6743 24 24 """ 25 25 import datetime 26 import os27 26 import shutil 28 27 import tempfile 29 import unittest30 28 from zope import schema 31 from zope.app.testing.functional import FunctionalTestCase32 29 from zope.component import provideUtility 33 30 from zope.component.factory import Factory 34 from zope.component.hooks import setSite,clearSite31 from zope.component.hooks import clearSite 35 32 from zope.component.interfaces import IFactory 36 33 from zope.formlib import form 37 34 from zope.interface import ( 38 35 Interface, implements, invariant, Invalid, implementedBy) 39 from zope.interface.verify import verifyClass, verifyObject40 36 41 37 from waeup.sirp.app import University 42 from waeup.sirp.testing import FunctionalLayer, doctestsuite_for_module 38 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase 39 from waeup.sirp.university import Faculty 43 40 from waeup.sirp.utils.converters import IObjectConverter 44 41 from waeup.sirp.utils.helpers import attrs_to_fields … … 339 336 assert data['num_cars'] == 1 340 337 return 341 342 343 def test_suite():344 suite = unittest.TestSuite()345 for testcase in [346 ConverterTests,347 ]:348 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(349 testcase350 )351 )352 return suite353
Note: See TracChangeset for help on using the changeset viewer.