mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
17 lines
321 B
Python
17 lines
321 B
Python
import pytest
|
|
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)
|
|
|
|
|
|
def test_not_implemented():
|
|
with pytest.raises(NotImplementedError):
|
|
Image.fromstring()
|