From c3f7aeca544191aebf324345c9fb7199b3bb39de Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Mon, 5 Nov 2012 22:44:00 -0500 Subject: [PATCH] Separate serialization test --- tests/test_serialization.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_serialization.py diff --git a/tests/test_serialization.py b/tests/test_serialization.py new file mode 100644 index 0000000..76d5391 --- /dev/null +++ b/tests/test_serialization.py @@ -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