Added tests that call _webp.WebPEncode and _webp.WebPDecode with invalid number of arguments.

This commit is contained in:
adw1n 2017-05-12 17:11:58 +02:00
parent 9608e5050e
commit 6ce11c9e8c

View File

@ -77,6 +77,11 @@ class TestFileWebp(PillowTestCase):
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__':
unittest.main()