diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-01-17 21:01:42 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-01-17 21:01:42 +0100 |
commit | 180abcdb87ba2f54c93e79b01a08fd039c95b256 (patch) | |
tree | 79a9e6d58077330b8c59da4619ebf11f5299105c /test/exif.py | |
parent | ccd9e961b51c4d4dab0af923abef8bd4556e0236 (diff) | |
download | pyexiv2-180abcdb87ba2f54c93e79b01a08fd039c95b256.tar.gz |
Do not convert automatically Undefined values to their human representation,
it's a lossy conversion.
Diffstat (limited to 'test/exif.py')
-rw-r--r-- | test/exif.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |