diff --git a/Tests/test_file_webp.py b/Tests/test_file_webp.py index 88f2e5f5b..a15ca97df 100644 --- a/Tests/test_file_webp.py +++ b/Tests/test_file_webp.py @@ -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()