-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f346108
commit d82701c
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
## python-exiv2 - Python interface to libexiv2 | ||
## http://github.com/jim-easterbrook/python-exiv2 | ||
## Copyright (C) 2023 Jim Easterbrook [email protected] | ||
## Copyright (C) 2023-24 Jim Easterbrook [email protected] | ||
## | ||
## This program is free software: you can redistribute it and/or | ||
## modify it under the terms of the GNU General Public License as | ||
|
@@ -120,6 +120,9 @@ def test_XmpData(self): | |
|
||
def _test_datum(self, datum): | ||
self.assertIsInstance(str(datum), str) | ||
buf = bytearray(datum.size()) | ||
with self.assertRaises(exiv2.Exiv2Error): | ||
datum.copy(buf, exiv2.ByteOrder.littleEndian) | ||
self.assertEqual(datum.count(), 3) | ||
self.assertEqual(datum.familyName(), 'Xmp') | ||
self.assertIsInstance(datum.getValue(), exiv2.LangAltValue) | ||
|