Skip to content

Commit

Permalink
Test null image
Browse files Browse the repository at this point in the history
  • Loading branch information
turnerm committed May 18, 2018
1 parent 0e92d73 commit 0020266
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions banzai/tests/test_image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from banzai.images import Image
from banzai.tests.utils import FakeContext


def test_null_filename():
test_image = Image(FakeContext, filename=None)
assert test_image.data is None

0 comments on commit 0020266

Please sign in to comment.