- Timestamp:
- 6 Jun 2011, 22:41:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicants.py
r5984 r6288 25 25 import unittest 26 26 from StringIO import StringIO 27 from zope.component import provideAdapter, adapts, getGlobalSiteManager 27 from hurry.file.file import IdFileRetrieval 28 from hurry.file.interfaces import IFileRetrieval 29 from zope.app.testing import placelesssetup 30 from zope.component import ( 31 provideAdapter, adapts, getGlobalSiteManager, provideUtility) 28 32 from zope.component.interfaces import IFactory 29 33 from zope.interface import verify, implements … … 68 72 69 73 def setUp(self): 74 placelesssetup.setUp() 75 provideUtility(IdFileRetrieval(), IFileRetrieval) 70 76 self.applicant = Applicant() 71 77 72 78 def tearDown(self): 79 placelesssetup.tearDown() 73 80 pass 74 81 … … 104 111 self.gsm = getGlobalSiteManager() 105 112 self.gsm.registerAdapter(FakeImageLocation) 113 self.fileretrieval = IdFileRetrieval() 114 provideUtility(self.fileretrieval, IFileRetrieval) 106 115 return 107 116 108 117 def tearDown(self): 109 118 self.gsm.unregisterAdapter(FakeImageLocation) 119 self.gsm.unregisterUtility(self.fileretrieval, IFileRetrieval) 110 120 return 111 121
Note: See TracChangeset for help on using the changeset viewer.