From 180abcdb87ba2f54c93e79b01a08fd039c95b256 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Sun, 17 Jan 2010 21:01:42 +0100 Subject: Do not convert automatically Undefined values to their human representation, it's a lossy conversion. --- test/exif.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/exif.py') diff --git a/test/exif.py b/test/exif.py index 6cb4f77..7b73966 100644 --- a/test/exif.py +++ b/test/exif.py @@ -287,14 +287,14 @@ class TestExifTag(unittest.TestCase): # Valid values tag = ExifTag('Exif.Photo.ExifVersion', '48 49 48 48 ') self.assertEqual(tag.type, 'Undefined') - self.assertEqual(tag._convert_to_python('48 49 48 48 '), '1.00') + self.assertEqual(tag._convert_to_python('48 49 48 48 '), '0100') def test_convert_to_string_undefined(self): # Valid values tag = ExifTag('Exif.Photo.ExifVersion') self.assertEqual(tag.type, 'Undefined') - self.assertEqual(tag._convert_to_string('48 49 48 48 '), '48 49 48 48 ') - self.assertEqual(tag._convert_to_string(u'48 49 48 48 '), '48 49 48 48 ') + self.assertEqual(tag._convert_to_string('0100'), '48 49 48 48 ') + self.assertEqual(tag._convert_to_string(u'0100'), '48 49 48 48 ') # Invalid values self.failUnlessRaises(ExifValueError, tag._convert_to_string, 3) -- cgit