mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
12 lines
294 B
Python
12 lines
294 B
Python
from imagekit.cachefiles import ImageCacheFile
|
|
from nose.tools import assert_false
|
|
from .imagegenerators import TestSpec
|
|
|
|
|
|
def test_no_source():
|
|
"""
|
|
Ensure sourceless specs are falsy.
|
|
"""
|
|
spec = TestSpec(source=None)
|
|
file = ImageCacheFile(spec)
|
|
assert_false(bool(file))
|