File: test_issue_45.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-- 716 bytes parent folder | download
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 Sigma24_105mmRecognition(metaclass=system_tests.CaseMeta):

    url = "https://github.com/Exiv2/exiv2/issues/45"

    filename = "$data_path/exiv2-g45.exv"
    commands = ["$exiv2 -pa --grep lens/i " + filename]
    stdout = ["""Exif.CanonCs.LensType                        Short       1  Sigma 24-105mm f/4 DG OS HSM | A
Exif.CanonCs.Lens                            Short       3  24.0 - 105.0 mm
Exif.CanonCf.LensAFStopButton                Short       1  0
Exif.Canon.LensModel                         Ascii      74  24-105mm F4 DG OS HSM | Art 013
Exif.CanonLe.LensSerialNumber                Byte        5  0000000000
"""]
    stderr = [""]
    retval = [0]