Blame tests/bugfixes/github/test_issue_511.py

Packit Service 21b5d1
# -*- coding: utf-8 -*-
Packit Service 21b5d1
Packit Service 21b5d1
import system_tests
Packit Service 21b5d1
import unittest
Packit Service 21b5d1
Packit Service 21b5d1
@unittest.skip("Skipping test using option -pR (only for Debug mode)")
Packit Service 21b5d1
class ThrowsWhenIFDsAreMalformed(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
    url = "https://github.com/Exiv2/exiv2/issues/511"
Packit Service 21b5d1
Packit Service 21b5d1
    filename = system_tests.path("$data_path/pocIssue511")
Packit Service 21b5d1
    commands = ["$exiv2 -pR " + filename]
Packit Service 21b5d1
    retval = [1]
Packit Service 21b5d1
    stdout = ["""STRUCTURE OF TIFF FILE (II): """ + filename + """
Packit Service 21b5d1
"""]
Packit Service 21b5d1
    stderr = ["""$exiv2_exception_message """ + filename + """:
Packit Service 21b5d1
$kerCorruptedMetadata
Packit Service 21b5d1
"""]