Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 29, 2015
1 parent 405c82e commit ba4c14a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added Tests/images/chi.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions Tests/test_imagedraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ def test_removed_methods(self):
self.assertRaises(Exception, lambda: draw.setink(0))
self.assertRaises(Exception, lambda: draw.setfill(0))

def test_valueerror(self):
im = Image.open("Tests/images/chi.gif")

draw = ImageDraw.Draw(im)
draw.line(((0, 0)), fill=(0, 0, 0))
del draw

def test_mode_mismatch(self):
im = hopper("RGB").copy()

Expand Down

0 comments on commit ba4c14a

Please sign in to comment.