Changeset 6311 for main/waeup.sirp/trunk/src/waeup/sirp/image/browser
- Timestamp:
- 9 Jun 2011, 22:50:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/image/browser/tests/image.txt
r6033 r6311 33 33 >>> widget() 34 34 u'<div>Download not available</div>' 35 35 36 36 Even if there were data in the request, there'd be nothing to download:: 37 37 … … 66 66 >>> request = TestRequest() 67 67 >>> widget = EncodingImageFileWidget(field, request) 68 68 69 69 >>> def normalize(s): 70 70 ... return u'\n '.join(filter(None, s.split(' '))) … … 84 84 >>> request = TestRequest(form={'field.foo': u''}) 85 85 >>> widget = EncodingImageFileWidget(field, request) 86 86 87 87 >>> def normalize(s): 88 88 ... return '\n '.join(filter(None, s.split(' '))) … … 143 143 request, but an id. Again, we should see the same:: 144 144 145 >>> request = TestRequest(form={'field.foo.file_id': 145 >>> request = TestRequest(form={'field.foo.file_id': 146 146 ... 'Zm9vLnR4dAp0aGUgY29udGVudHM='}) 147 147 >>> widget = EncodingImageFileWidget(field, request) … … 174 174 175 175 >>> request = TestRequest(form={'field.foo': FileUpload(another_file), 176 ... 'field.foo.file_id': 176 ... 'field.foo.file_id': 177 177 ... 'Zm9vLnR4dAp0aGUgY29udGVudHM='}) 178 178
Note: See TracChangeset for help on using the changeset viewer.