From 665293e9b9ddf19264f55e26498fc7092d9c96be Mon Sep 17 00:00:00 2001 From: hugovk Date: Thu, 17 Jul 2014 02:38:57 +0300 Subject: [PATCH] More tests for XpmImagePlugin.py --- Tests/test_file_xpm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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()