mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Added tests
This commit is contained in:
parent
ef16cb8efe
commit
5a668779e9
|
@ -321,3 +321,13 @@ class TestPyDecoder(PillowTestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
exif.get_ifd(0xA005), {1: "R98", 2: b"0100", 4097: 2272, 4098: 1704}
|
exif.get_ifd(0xA005), {1: "R98", 2: b"0100", 4097: 2272, 4098: 1704}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_exif_shared(self):
|
||||||
|
im = Image.open("Tests/images/exif.png")
|
||||||
|
exif = im.getexif()
|
||||||
|
self.assertIs(im.getexif(), exif)
|
||||||
|
|
||||||
|
def test_exif_str(self):
|
||||||
|
im = Image.open("Tests/images/exif.png")
|
||||||
|
exif = im.getexif()
|
||||||
|
self.assertEqual(str(exif), "{274: 1}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user