diff --git a/Tests/test_file_xpm.py b/Tests/test_file_xpm.py index d79f5fbda..7eef04676 100644 --- a/Tests/test_file_xpm.py +++ b/Tests/test_file_xpm.py @@ -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()