mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Separate serialization test
This commit is contained in:
parent
c752eea6a0
commit
c3f7aeca54
1 changed files with 13 additions and 0 deletions
13
tests/test_serialization.py
Normal file
13
tests/test_serialization.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"""
|
||||
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)
|
||||
thumbnail.source_file
|
||||
Loading…
Reference in a new issue