Blame tests/bugfixes/redmine/test_issue_1223.py

Packit Service 21b5d1
# -*- coding: utf-8 -*-
Packit Service 21b5d1
Packit Service 21b5d1
import system_tests
Packit Service 21b5d1
Packit Service 21b5d1
Packit Service 21b5d1
class CheckShutterInPentax(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
Packit Service 21b5d1
    url = "http://dev.exiv2.org/issues/1223"
Packit Service 21b5d1
    filenames = ["$data_path/RAW_PENTAX_K30.exv",
Packit Service 21b5d1
                 "$data_path/RAW_PENTAX_K100.exv"]
Packit Service 21b5d1
Packit Service 21b5d1
    commands = [
Packit Service 21b5d1
        "$exiv2 -pa --grep Shutter " + filenames[0],
Packit Service 21b5d1
        "$exiv2 -pa --grep Shutter " + filenames[1],
Packit Service 21b5d1
    ]
Packit Service 21b5d1
Packit Service 21b5d1
    stdout = [
Packit Service 21b5d1
        "Exif.PentaxDng.ShutterCount                  Undefined   4  115\n",
Packit Service 21b5d1
        "Exif.Pentax.ShutterCount                     Undefined   4  24757\n",
Packit Service 21b5d1
    ]
Packit Service 21b5d1
Packit Service 21b5d1
    stderr = [""] * len(stdout)
Packit Service 21b5d1
    retval = [0] * len(stdout)