More tests for XpmImagePlugin.py

This commit is contained in:
hugovk 2014-07-17 02:38:57 +03:00
parent c22c8eefcc
commit 665293e9b9

View File

@ -16,6 +16,17 @@ class TestFileXpm(PillowTestCase):
self.assertEqual(im.size, (128, 128))
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__':
unittest.main()