MCPcopy Index your code
hub / github.com/python-pillow/Pillow / test_info

Method test_info

Tests/test_image_transform.py:38–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 assert_image_equal(im, im.transform(im.size, transform))
37
38 def test_info(self) -> None:
39 comment = b"File written by Adobe Photoshop\xa8 4.0"
40
41 with Image.open("Tests/images/hopper.gif") as im:
42 assert im.info["comment"] == comment
43
44 transform = ImageTransform.ExtentTransform((0, 0, 0, 0))
45 new_im = im.transform((100, 100), transform)
46 assert new_im.info["comment"] == comment
47
48 def test_palette(self) -> None:
49 with Image.open("Tests/images/hopper.gif") as im:

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected