aboutsummaryrefslogtreecommitdiffstats
path: root/test/exif.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/exif.py')
-rw-r--r--test/exif.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/exif.py b/test/exif.py
index 38e19b7..918f100 100644
--- a/test/exif.py
+++ b/test/exif.py
@@ -79,12 +79,18 @@ class TestExifTag(unittest.TestCase):
'2009:03:01 12:54:28')
self.assertEqual(tag._convert_to_string(datetime.date(2009, 03, 01)),
'2009:03:01 00:00:00')
+ self.assertEqual(tag._convert_to_string(datetime.datetime(1899, 12, 31, 23, 59, 59)),
+ '1899:12:31 23:59:59')
+ self.assertEqual(tag._convert_to_string(datetime.date(1899, 12, 31)),
+ '1899:12:31 00:00:00')
# Valid values: dates
tag = ExifTag('Exif.GPSInfo.GPSDateStamp')
self.assertEqual(tag.type, 'Ascii')
self.assertEqual(tag._convert_to_string(datetime.date(2009, 03, 01)),
'2009:03:01')
+ self.assertEqual(tag._convert_to_string(datetime.date(1899, 12, 31)),
+ '1899:12:31')
# Valid values: strings
tag = ExifTag('Exif.Image.Copyright')