Blame tests/bugfixes/github/test_issue_547.py

Packit Service fb147c
# -*- coding: utf-8 -*-
Packit Service fb147c
Packit Service fb147c
from system_tests import CaseMeta, path
Packit Service fb147c
import unittest
Packit Service fb147c
Packit Service fb147c
@unittest.skip("Skipping test using option -pR (only for Debug mode)")
Packit Service fb147c
Packit Service fb147c
class test_issue_547(metaclass=CaseMeta):
Packit Service fb147c
    """
Packit Service fb147c
    Regression test for the bug described in:
Packit Service fb147c
    https://github.com/Exiv2/exiv2/pull/547
Packit Service fb147c
    """
Packit Service fb147c
    url = "https://github.com/Exiv2/exiv2/issues/547"
Packit Service fb147c
Packit Service fb147c
    filename = path("$data_path/issue_547.poc")
Packit Service fb147c
    commands = ["$exiv2 -pR $filename"]
Packit Service fb147c
    stdout = ["""STRUCTURE OF TIFF FILE (II): $filename
Packit Service fb147c
 address |    tag                              |      type |    count |    offset | value
Packit Service fb147c
      12 | 0x0001 Version                      |    SSHORT |        0 |           | 
Packit Service fb147c
"""]
Packit Service fb147c
    stderr = [
Packit Service fb147c
"""Exiv2 exception in print action for file $filename:
Packit Service fb147c
$kerCorruptedMetadata
Packit Service fb147c
"""
Packit Service fb147c
]
Packit Service fb147c
    retval = [1]