File: test_image_frombytes.py

package info (click to toggle)
pillow 8.1.2%2Bdfsg-0.3%2Bdeb11u2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 65,628 kB
  • sloc: python: 35,630; ansic: 31,009; makefile: 388; javascript: 114; sh: 77
file content (10 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from PIL import Image

from .helper import assert_image_equal, hopper


def test_sanity():
    im1 = hopper()
    im2 = Image.frombytes(im1.mode, im1.size, im1.tobytes())

    assert_image_equal(im1, im2)