Changeset 6033


Ignore:
Timestamp:
10 May 2011, 10:51:59 (14 years ago)
Author:
uli
Message:

Fix tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/image/browser/tests/image.txt

    r5923 r6033  
    1212
    1313  >>> import os
    14   >>> from hurry.file import HurryFile
     14  >>> from waeup.sirp.image import WAeUPImageFile
    1515  >>> testimage = os.path.join(os.path.dirname(__file__), 'sample.jpg')
    16   >>> some_file = HurryFile('foo.jpg', open(testimage, 'rb').read())
     16  >>> some_file = WAeUPImageFile('foo.jpg', open(testimage, 'rb').read())
    1717  >>> some_file.filename
    1818  'foo.jpg'
     
    6262  >>> #from hurry.file.browser import EncodingFileWidget
    6363  >>> from waeup.sirp.image.browser import EncodingImageFileWidget
    64   >>> field = File(__name__='foo', title=u'Foo', required=False)
     64  >>> field = ImageFile(__name__='foo', title=u'Foo', required=False)
    6565  >>> field = field.bind(None)
    6666  >>> request = TestRequest()
     
    166166prepare some new file::
    167167
    168   >>> another_file = HurryFile('bar.txt', 'bar contents')
     168  >>> another_file = WAeUPImageFile('bar.txt', 'bar contents')
    169169
    170170We happen to know, due to the implementation of
Note: See TracChangeset for help on using the changeset viewer.