Blame tests/bugfixes/github/test_regression_issue_201.py

Packit 01d647
# -*- coding: utf-8 -*-
Packit 01d647
Packit 01d647
import system_tests
Packit 01d647
Packit 01d647
Packit 01d647
class ShadowingError(metaclass=system_tests.CaseMeta):
Packit 01d647
Packit Service fb147c
    commands = ["$exiv2 -PE -b $data_path/IMGP0020.exv"]
Packit 01d647
    stdout = [""]
Packit 01d647
    stderr = [""]
Packit 01d647
    retval = [0]
Packit 01d647
Packit 01d647
    def compare_stdout(self, i, command, got_stdout, expected_stdout):
Packit 01d647
        """
Packit 01d647
        We only really care about the LensInfo line and that exiv2 does not
Packit 01d647
        crash, which the return value check also ensures.
Packit 01d647
        """
Packit 01d647
        self.assertIn(
Packit 01d647
            "Exif.PentaxDng.LensInfo                      Undefined  69  131 0 0 255 0 40 148 111 65 69 6 238 65 78 153 80 40 1 73 107 251 255 255 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
Packit 01d647
            got_stdout
Packit 01d647
        )