mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-05 16:33:42 +03:00
Added tests that call _webp.WebPEncode and _webp.WebPDecode with invalid number of arguments.
This commit is contained in:
parent
9608e5050e
commit
6ce11c9e8c
|
@ -77,6 +77,11 @@ class TestFileWebp(PillowTestCase):
|
||||||
|
|
||||||
self.assertRaises(IOError, lambda: hopper("L").save(temp_file))
|
self.assertRaises(IOError, lambda: hopper("L").save(temp_file))
|
||||||
|
|
||||||
|
def test_WebPEncode_with_invalid_args(self):
|
||||||
|
self.assertRaises(TypeError, _webp.WebPEncode)
|
||||||
|
|
||||||
|
def test_WebPDecode_with_invalid_args(self):
|
||||||
|
self.assertRaises(TypeError, _webp.WebPDecode)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user