mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +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):
|
||||
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__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user