mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Add test to ensure sourceless specs are falsy
Currently failing; related to #187
This commit is contained in:
parent
74ae51f164
commit
190153d068
1 changed files with 12 additions and 0 deletions
12
tests/test_specs.py
Normal file
12
tests/test_specs.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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))
|
||||
Loading…
Reference in a new issue