Added test for Image offset NotImplementedError

This commit is contained in:
Andrew Murray 2017-01-28 13:06:28 +11:00
parent 851aa210df
commit 581fef2ebd

View File

@ -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()