mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 12:23:18 +03:00
Roundtrip test hotspot
This commit is contained in:
parent
dbd3c7c9b9
commit
f3f9190de7
|
@ -65,3 +65,13 @@ class TestFileXbm(PillowTestCase):
|
||||||
|
|
||||||
with self.assertRaises(OSError):
|
with self.assertRaises(OSError):
|
||||||
im.save(out)
|
im.save(out)
|
||||||
|
|
||||||
|
def test_hotspot(self):
|
||||||
|
im = hopper("1")
|
||||||
|
out = self.tempfile("temp.xbm")
|
||||||
|
|
||||||
|
hotspot = (0, 7)
|
||||||
|
im.save(out, hotspot=hotspot)
|
||||||
|
|
||||||
|
with Image.open(out) as reloaded:
|
||||||
|
self.assertEqual(reloaded.info["hotspot"], hotspot)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user