11## python-exiv2 - Python interface to libexiv2
22## http://github.com/jim-easterbrook/python-exiv2
3- ## Copyright (C) 2023-24 Jim Easterbrook jim@jim-easterbrook.me.uk
3+ ## Copyright (C) 2023-25 Jim Easterbrook jim@jim-easterbrook.me.uk
44##
55## This program is free software: you can redistribute it and/or
66## modify it under the terms of the GNU General Public License as
@@ -69,6 +69,12 @@ def test_GroupInfo(self):
6969 self .assertIsInstance (tag_list , list )
7070 self .assertGreater (len (tag_list ), 0 )
7171 self .assertIsInstance (tag_list [0 ], exiv2 .TagInfo )
72+ self .check_result (info .groupName_ , str , info ['groupName' ])
73+ self .check_result (info .ifdName_ , str , info ['ifdName' ])
74+ with self .assertRaises (TypeError ):
75+ del info ['groupName' ]
76+ with self .assertRaises (AttributeError ):
77+ del info .ifdName_
7278
7379 def test_TagInfo (self ):
7480 info = exiv2 .ExifTags .tagList (self .group_name )[0 ]
@@ -90,6 +96,12 @@ def test_TagInfo(self):
9096 self .check_result (info ['title' ], str , 'Processing Software' )
9197 self .check_result (
9298 info ['typeId' ], exiv2 .TypeId , exiv2 .TypeId .asciiString )
99+ self .check_result (info .name_ , str , info ['name' ])
100+ self .check_result (info .title_ , str , info ['title' ])
101+ with self .assertRaises (TypeError ):
102+ del info ['name' ]
103+ with self .assertRaises (AttributeError ):
104+ del info .title_
93105
94106 def test_ExifKey (self ):
95107 # constructors
0 commit comments