Pillow/Tests/test_image_getxmp.py
2020-12-30 22:40:39 +11:00

10 lines
221 B
Python

from PIL import Image
def test_getxmp():
with Image.open("Tests/images/xmp_test.jpg") as im:
xmp = im.getxmp()
assert isinstance(xmp, dict)
assert xmp["Description"][0]["Version"] == "10.4"