Blame tests/bugfixes/redmine/test_issue_1140.py

Packit Service 21b5d1
# -*- coding: utf-8 -*-
Packit Service 21b5d1
Packit Service 21b5d1
import system_tests
Packit Service 21b5d1
Packit Service 21b5d1
class CheckCanonLenses(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
Packit Service 21b5d1
    url = "http://dev.exiv2.org/issues/1140"
Packit Service 21b5d1
Packit Service 21b5d1
    filename = system_tests.path("$data_path/exiv2-bug1140.exv")
Packit Service 21b5d1
    commands = [ "$exiv2 -pa -g Lens $filename" ]
Packit Service 21b5d1
Packit Service 21b5d1
    stdout = [ """Exif.CanonCs.LensType                        Short       1  Canon EF-S 24mm f/2.8 STM
Packit Service 21b5d1
Exif.CanonCs.Lens                            Short       3  24.0 mm
Packit Service 21b5d1
Exif.CanonCf.LensAFStopButton                Short       1  2304
Packit Service 21b5d1
Exif.Canon.LensModel                         Ascii      64  
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
    stderr = [""]
Packit Service 21b5d1
    retval = [0]