Add a test for PalmImagePlugin.py

This commit is contained in:
hugovk 2014-07-01 22:18:40 +03:00
parent 1afa2f2aa9
commit 3807af79e3

24
Tests/test_file_palm.py Normal file
View File

@ -0,0 +1,24 @@
from helper import unittest, PillowTestCase, tearDownModule, lena
import os.path
class TestFilePalm(PillowTestCase):
def test_save_palm_p(self):
# Arrange
im = lena("P")
outfile = self.tempfile('temp_p.palm')
# Act
im.save(outfile)
# Assert
self.assertTrue(os.path.isfile(outfile))
self.assertGreater(os.path.getsize(outfile), 0)
if __name__ == '__main__':
unittest.main()
# End of file