mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Added test for Image offset NotImplementedError
This commit is contained in:
parent
851aa210df
commit
581fef2ebd
|
@ -305,6 +305,13 @@ class TestImage(PillowTestCase):
|
||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
Image.core.fill('RGB', (2,-2), (0,0,0))
|
Image.core.fill('RGB', (2,-2), (0,0,0))
|
||||||
|
|
||||||
|
def test_offset_not_implemented(self):
|
||||||
|
# Arrange
|
||||||
|
im = hopper()
|
||||||
|
|
||||||
|
# Act / Assert
|
||||||
|
self.assertRaises(NotImplementedError, lambda: im.offset(None))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user