mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
More tests for XpmImagePlugin.py
This commit is contained in:
parent
c22c8eefcc
commit
665293e9b9
|
@ -16,6 +16,17 @@ class TestFileXpm(PillowTestCase):
|
||||||
self.assertEqual(im.size, (128, 128))
|
self.assertEqual(im.size, (128, 128))
|
||||||
self.assertEqual(im.format, "XPM")
|
self.assertEqual(im.format, "XPM")
|
||||||
|
|
||||||
|
def test_load_read(self):
|
||||||
|
# Arrange
|
||||||
|
im = Image.open(file)
|
||||||
|
dummy_bytes = 1
|
||||||
|
|
||||||
|
# Act
|
||||||
|
data = im.load_read(dummy_bytes)
|
||||||
|
|
||||||
|
# Assert
|
||||||
|
self.assertEqual(len(data), 16384)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user