Blame tests/bugfixes/redmine/test_issue_769.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
@system_tests.CopyFiles("$data_path/exiv2-empty.jpg")
Packit Service 21b5d1
class AssertionSvEqualsDFailedRegression(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
Packit Service 21b5d1
    url = "http://dev.exiv2.org/issues/769"
Packit Service 21b5d1
Packit Service 21b5d1
    filename = "$data_path/exiv2-empty_copy.jpg"
Packit Service 21b5d1
Packit Service 21b5d1
    commands = [
Packit Service 21b5d1
        """$exiv2 -u -v -M"add Exif.Image.Make Canon" -M"add Exif.CanonCs.0x0001 Short 1" -M"add Exif.CanonCs.0x0000 Short 2" $filename""",
Packit Service 21b5d1
        "$exiv2 -u -v -PEkyct $filename"
Packit Service 21b5d1
    ]
Packit Service 21b5d1
Packit Service 21b5d1
    stdout = [
Packit Service 21b5d1
        """File 1/1: $filename
Packit Service 21b5d1
Add Exif.Image.Make "Canon" (Ascii)
Packit Service 21b5d1
Add Exif.CanonCs.0x0001 "1" (Short)
Packit Service 21b5d1
Add Exif.CanonCs.0x0000 "2" (Short)
Packit Service 21b5d1
""",
Packit Service 21b5d1
        """File 1/1: $filename
Packit Service 21b5d1
Exif.Image.Make                              Ascii       6  Canon
Packit Service 21b5d1
Exif.Image.ExifTag                           Long        1  44
Packit Service 21b5d1
Exif.Photo.MakerNote                         Undefined  18  1 0 1 0 3 0 2 0 0 0 4 0 1 0 0 0 0 0
Packit Service 21b5d1
Exif.MakerNote.Offset                        Long        1  62
Packit Service 21b5d1
Exif.MakerNote.ByteOrder                     Ascii       3  II
Packit Service 21b5d1
Exif.CanonCs.0x0000                          Short       1  4
Packit Service 21b5d1
Exif.CanonCs.Macro                           Short       1  On
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
Packit Service 21b5d1
    stderr = [""] * 2
Packit Service 21b5d1
    retval = [0] * 2