mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-25 20:53:44 +00:00
Add (failing) test for #234
This commit is contained in:
parent
637af70921
commit
db6cfcb6ce
1 changed files with 12 additions and 0 deletions
|
|
@ -11,3 +11,15 @@ def test_imagespecfield():
|
||||||
instance = create_photo('pickletest2.jpg')
|
instance = create_photo('pickletest2.jpg')
|
||||||
thumbnail = pickleback(instance.thumbnail)
|
thumbnail = pickleback(instance.thumbnail)
|
||||||
thumbnail.generate()
|
thumbnail.generate()
|
||||||
|
|
||||||
|
|
||||||
|
def test_circular_ref():
|
||||||
|
"""
|
||||||
|
A model instance with a spec field in its dict shouldn't raise a KeyError.
|
||||||
|
|
||||||
|
This corresponds to #234
|
||||||
|
|
||||||
|
"""
|
||||||
|
instance = create_photo('pickletest3.jpg')
|
||||||
|
instance.thumbnail # Cause thumbnail to be added to instance's __dict__
|
||||||
|
pickleback(instance)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue