Pillow/Tests/test_image_getxmp.py

10 lines
252 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-30 14:35:54 +03:00
with Image.open("Tests/images/xmp_test.jpg") as im:
type_repr = repr(type(im.getxmp()))
2020-12-28 05:49:28 +03:00
2020-12-30 14:35:54 +03:00
assert "dict" in type_repr
assert isinstance(im.getxmp()["Description"][0]["Version"], str)