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

Method test_sanity

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

Source from the content-addressed store, hash-verified

15
16class TestImageTransform:
17 def test_sanity(self) -> None:
18 im = hopper()
19
20 for transform in (
21 ImageTransform.AffineTransform((1, 0, 0, 0, 1, 0)),
22 ImageTransform.PerspectiveTransform((1, 0, 0, 0, 1, 0, 0, 0)),
23 ImageTransform.ExtentTransform((0, 0) + im.size),
24 ImageTransform.QuadTransform(
25 (0, 0, 0, im.height, im.width, im.height, im.width, 0)
26 ),
27 ImageTransform.MeshTransform(
28 [
29 (
30 (0, 0) + im.size,
31 (0, 0, 0, im.height, im.width, im.height, im.width, 0),
32 )
33 ]
34 ),
35 ):
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"

Callers

nothing calls this directly

Calls 3

hopperFunction · 0.85
assert_image_equalFunction · 0.85
transformMethod · 0.45

Tested by

no test coverage detected