File: test_issue_1368.py

package info (click to toggle)
exiv2 0.28.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 109,208 kB
  • sloc: cpp: 77,571; python: 9,474; javascript: 237; makefile: 190; sh: 172; ansic: 51; sed: 16
file content (19 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-

import system_tests

class Canon_Sigma_18_35_F18_DC_HSM(metaclass=system_tests.CaseMeta):
    url = "https://github.com/Exiv2/exiv2/issues/1368"
    
    filename1 = "$data_path/Canon_Sigma_18_35_F18_DC_HSM_firmware_1xx.exv"
    filename2 = "$data_path/Canon_Sigma_18_35_F18_DC_HSM_firmware_2xx.exv"
    commands  = ["$exiv2 -pa -K Exif.CanonCs.LensType $filename1",
                 "$exiv2 -pa -K Exif.CanonCs.LensType $filename2"]
    stderr = ["", ""]
    stdout = [
        """Exif.CanonCs.LensType                        Short       1  Sigma 18-35mm f/1.8 DC HSM | A
""",
        """Exif.CanonCs.LensType                        Short       1  Sigma 18-35mm f/1.8 DC HSM | A
"""
]
    retval = [0, 0]