Changeset 6657
- Timestamp:
- 2 Sep 2011, 09:43:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicant.py
r6632 r6657 25 25 from StringIO import StringIO 26 26 from hurry.file.interfaces import IFileRetrieval 27 from zope.app.testing.functional import FunctionalTestCase28 27 from zope.component import ( 29 28 provideAdapter, adapts, getGlobalSiteManager, provideUtility) … … 44 43 ) 45 44 from waeup.sirp.imagestorage import ImageStorageFileRetrieval 46 from waeup.sirp.testing import FunctionalLayer45 from waeup.sirp.testing import (FunctionalTestCase, FunctionalLayer) 47 46 48 47 class FakeImageLocation(object): … … 116 115 117 116 def setUp(self): 117 super(ApplicantFactoryTest, self).setUp() 118 118 # Install a IFileRetrieval utility that returns WAeUPImageFiles. 119 119 storage = ImageStorageFileRetrieval() 120 120 provideUtility(storage, IFileRetrieval) 121 121 self.factory = ApplicantFactory() 122 123 def tearDown(self): 124 pass 122 return 123 124 def tearDown(self): 125 super(ApplicantFactoryTest, self).tearDown() 126 return 125 127 126 128 def test_interfaces(self):
Note: See TracChangeset for help on using the changeset viewer.