mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-08 14:24:46 +03:00
Test for 4-bit TIFF
This commit is contained in:
parent
2b11052588
commit
39b30e616a
|
@ -298,6 +298,17 @@ class TestFileTiff(PillowTestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(ret, [0, 1])
|
self.assertEqual(ret, [0, 1])
|
||||||
|
|
||||||
|
def test_4bit(self):
|
||||||
|
# Arrange
|
||||||
|
test_file = "Tests/images/flower-minisblack-04.tif"
|
||||||
|
|
||||||
|
# Act
|
||||||
|
im = Image.open(test_file)
|
||||||
|
|
||||||
|
# Assert
|
||||||
|
self.assertEqual(im.size, (73, 43))
|
||||||
|
self.assertEqual(im.mode, "L")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user