Changeset 5984 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 26 Apr 2011, 11:20:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicants.py
r5764 r5984 25 25 import unittest 26 26 from StringIO import StringIO 27 from zope.app.file.interfaces import IImage28 27 from zope.component import provideAdapter, adapts, getGlobalSiteManager 29 28 from zope.component.interfaces import IFactory … … 33 32 from zope.publisher.interfaces import NotFound 34 33 from waeup.sirp.interfaces import IWAeUPSIRPPluggable 35 from waeup.sirp.widgets.passportwidget import PassportImage 34 from waeup.sirp.image.image import WAeUPImageFile 35 from waeup.sirp.image.interfaces import IWAeUPImageFile 36 36 from waeup.sirp.applicants import ( 37 37 ResultEntry, Applicant, ApplicantFactory, ApplicantTraverser, … … 43 43 class FakeImageLocation(object): 44 44 implements(ILocation) 45 adapts(I Image)45 adapts(IWAeUPImageFile) 46 46 def __init__(self, context): 47 47 pass … … 136 136 self.applicant, self.request 137 137 ) 138 self.applicant.passport = PassportImage(None)138 self.applicant.passport = WAeUPImageFile('nofile.jpg', '') 139 139 self.applicant.passport.filename = 'mypic.jpg' 140 140 result = traverser.publishTraverse(self.request, 'passport.jpg') … … 147 147 self.applicant, self.request 148 148 ) 149 self.applicant.passport = PassportImage(None)149 self.applicant.passport = WAeUPImageFile('nofile.jpg', '') 150 150 self.applicant.passport.filename = 'mypic.jpg' 151 151 result = traverser.publishTraverse(self.request, 'mypic.jpg')
Note: See TracChangeset for help on using the changeset viewer.