Pillow/Tests/test_image_getxmp.py

10 lines
218 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:
2020-12-30 14:39:49 +03:00
xmp = im.getxmp()
assert isinstance(xmp, dict)
assert xmp["Description"]["Version"] == "10.4"