mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Replace lena.ico with hopper.ico. Created with ImageMagick: convert hopper.jpg -resize 16x16 hopper.ico
This commit is contained in:
parent
76a7965187
commit
3ec65f8614
BIN
Tests/images/hopper.ico
Normal file
BIN
Tests/images/hopper.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
|
@ -3,14 +3,14 @@ from helper import unittest, PillowTestCase
|
|||
from PIL import Image
|
||||
|
||||
# sample ppm stream
|
||||
file = "Tests/images/lena.ico"
|
||||
data = open(file, "rb").read()
|
||||
TEST_ICO_FILE = "Tests/images/hopper.ico"
|
||||
TEST_DATA = open(TEST_ICO_FILE, "rb").read()
|
||||
|
||||
|
||||
class TestFileIco(PillowTestCase):
|
||||
|
||||
def test_sanity(self):
|
||||
im = Image.open(file)
|
||||
im = Image.open(TEST_ICO_FILE)
|
||||
im.load()
|
||||
self.assertEqual(im.mode, "RGBA")
|
||||
self.assertEqual(im.size, (16, 16))
|
||||
|
|
Loading…
Reference in New Issue
Block a user