Skip to content

Commit f3f9190

Browse files
committed
Roundtrip test hotspot
1 parent dbd3c7c commit f3f9190

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Tests/test_file_xbm.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ def test_save_wrong_mode(self):
6565

6666
with self.assertRaises(OSError):
6767
im.save(out)
68+
69+
def test_hotspot(self):
70+
im = hopper("1")
71+
out = self.tempfile("temp.xbm")
72+
73+
hotspot = (0, 7)
74+
im.save(out, hotspot=hotspot)
75+
76+
with Image.open(out) as reloaded:
77+
self.assertEqual(reloaded.info["hotspot"], hotspot)

0 commit comments

Comments
 (0)