exiv2/tests/bugfixes/redmine/test_issue_1122.py
Luis Diaz Mas 145f8fc456 Port redmine issues from the bash test suite to the python one.
* Port redmine issue 1024
 * Port redmine issue 1026
 * Port redmine issue 1040
 * Port redmine issue 1044
 * Port redmine issue 1053
 * Port redmine issue 1054 (not finished yet; I found some issues there)
 * Port redmine issue 1058
 * Port redmine issue 1062
 * Port redmine issue 1080
 * Port redmine issue 1108
 * Port redmine issue 1112
 * Port redmine issue 1114
 * Port redmine issue 1122
 * Port redmine issue 1140
 * Port redmine issue 1144
 * Port redmine issue 1145
 * Port redmine issue 1153
 * Port redmine issue 1155
 * Port redmine issue 1166
 * Port redmine issue 1167
 * Port redmine issue 1170
 * Replace escaped chars in 1054
 * Add brackets in exiv2json::main()
 * Link all sample apps against exiv2lib
 * Changes in 1054
 * test 1054: fix dates depending on Local time
 * Do not run make with VERBOSE=1
 * Use system_tests.path
 * Fix windows issues with quotes
 * Use system_tests.path
 * Use itertools to simplify test code
2018-07-31 18:18:14 +02:00

31 lines
1.3 KiB
Python

# -*- coding: utf-8 -*-
import system_tests
class CheckLensDetectionTeleconverter(metaclass=system_tests.CaseMeta):
url = "http://dev.exiv2.org/issues/1122"
filename = system_tests.path("$data_path/exiv2-bug1122.exv")
commands = [ "$exiv2 -pv -g Lens $filename",
"$exiv2 -pa -g Lens $filename",
]
stdout = [ """0x0016 CanonCs LensType Short 1 173
0x0017 CanonCs Lens Short 3 1000 300 1
0x0095 Canon LensModel Ascii 74 300-1000mm
0xa432 Photo LensSpecification Rational 4 300/1 1000/1 0/1 0/1
0xa434 Photo LensModel Ascii 11 300-1000mm
0xa435 Photo LensSerialNumber Ascii 11 0000000000
""",
"""Exif.CanonCs.LensType Short 1 Sigma 150-500mm f/5-6.3 APO DG OS HSM + 2x
Exif.CanonCs.Lens Short 3 300.0 - 1000.0 mm
Exif.Canon.LensModel Ascii 74 300-1000mm
Exif.Photo.LensSpecification Rational 4 300/1 1000/1 0/1 0/1
Exif.Photo.LensModel Ascii 11 300-1000mm
Exif.Photo.LensSerialNumber Ascii 11 0000000000
"""
]
stderr = [""] * len(commands)
retval = [0] * len(commands)