Added test

This commit is contained in:
Andrew Murray 2015-12-30 09:37:50 +11:00 committed by wiredfool
parent 4f6f5f9182
commit 3c2e374824
2 changed files with 7 additions and 0 deletions

BIN
Tests/images/chi.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -52,6 +52,13 @@ class TestImageDraw(PillowTestCase):
self.assertRaises(Exception, lambda: draw.setink(0)) self.assertRaises(Exception, lambda: draw.setink(0))
self.assertRaises(Exception, lambda: draw.setfill(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): def test_mode_mismatch(self):
im = hopper("RGB").copy() im = hopper("RGB").copy()