From 0104da13ef883e1e7476b5434fca96135ba5aaed Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Wed, 28 Oct 2009 09:50:11 +0100 Subject: Pass IPTC Dates to exiv2 in the correct format (%Y-%m-%d). --- test/iptc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/iptc.py b/test/iptc.py index 4a8e4fe..06d01dd 100644 --- a/test/iptc.py +++ b/test/iptc.py @@ -129,13 +129,13 @@ class TestIptcTag(unittest.TestCase): # Valid values tag = IptcTagMock('Iptc.Envelope.DateSent', type) self.assertEqual(tag._convert_to_string(datetime.date(2009, 2, 4)), - '20090204') + '2009-02-04') self.assertEqual(tag._convert_to_string(datetime.datetime(1999, 10, 13)), - '19991013') + '1999-10-13') self.assertEqual(tag._convert_to_string(datetime.datetime(2009, 2, 4)), - '20090204') + '2009-02-04') self.assertEqual(tag._convert_to_string(datetime.datetime(2009, 2, 4, 10, 52, 37)), - '20090204') + '2009-02-04') # Invalid values self.failUnlessRaises(IptcValueError, tag._convert_to_string, 'invalid') -- cgit