Pillow/Tests/test_image_getxmp.py

10 lines
233 B
Python
Raw Normal View History

2020-12-28 06:37:15 +03:00
from PIL import Image
2020-12-28 04:52:46 +03:00
2020-12-28 05:01:56 +03:00
2020-12-28 04:52:46 +03:00
def test_getxmp():
2020-12-28 07:24:38 +03:00
im = Image.open("Tests/images/xmp_test.jpg")
2020-12-28 05:00:04 +03:00
type_repr = repr(type(im.getxmp()))
2020-12-28 05:49:28 +03:00
2020-12-28 05:00:04 +03:00
assert "dict" in type_repr
2020-12-28 07:24:38 +03:00
assert isinstance(im.getxmp()['Description'][0]['Version'], int)