mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-27 12:33:41 +03:00
Added test for unknown filter in Image resize
This commit is contained in:
parent
01cb6590a4
commit
2039d43d85
|
@ -97,6 +97,9 @@ class TestImagingCoreResize(PillowTestCase):
|
||||||
self.assertEqual(r.size, (212, 195))
|
self.assertEqual(r.size, (212, 195))
|
||||||
self.assertEqual(r.getdata()[0], (0,0,0))
|
self.assertEqual(r.getdata()[0], (0,0,0))
|
||||||
|
|
||||||
|
def test_unknown_filter(self):
|
||||||
|
self.assertRaises(ValueError, self.resize, hopper(), (10, 10), 9)
|
||||||
|
|
||||||
|
|
||||||
class TestImageResize(PillowTestCase):
|
class TestImageResize(PillowTestCase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user