django-imagekit/tests/test_serialization.py

14 lines
334 B
Python
Raw Normal View History

2012-11-06 03:44:00 +00:00
"""
Make sure that the various IK classes can be successfully serialized and
deserialized. This is important when using IK with Celery.
"""
from .utils import create_photo, pickleback
def test_imagespecfield():
instance = create_photo('pickletest2.jpg')
thumbnail = pickleback(instance.thumbnail)
2012-12-05 05:44:16 +00:00
thumbnail.generate()