Add test to ensure sourceless specs are falsy

Currently failing; related to #187
This commit is contained in:
Matthew Tretter 2013-02-25 22:15:57 -05:00
parent 74ae51f164
commit 190153d068

12
tests/test_specs.py Normal file
View 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))