mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Add a test for PalmImagePlugin.py
This commit is contained in:
parent
1afa2f2aa9
commit
3807af79e3
24
Tests/test_file_palm.py
Normal file
24
Tests/test_file_palm.py
Normal 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
|
Loading…
Reference in New Issue
Block a user