Blame tests/tiff_test/test_tiff_test_program.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/mini9.tif")
Packit Service 21b5d1
class TestTiffTestProg(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
Packit Service 21b5d1
    commands = ["$tiff_test $data_path/mini9_copy.tif"]
Packit Service 21b5d1
Packit Service 21b5d1
    stdout = [
Packit Service 21b5d1
        """Test 1: Writing empty Exif data without original binary data: ok.
Packit Service 21b5d1
Test 2: Writing empty Exif data with original binary data: ok.
Packit Service 21b5d1
Test 3: Wrote non-empty Exif data without original binary data:
Packit Service 21b5d1
Exif.Image.ExifTag                           0x8769 Long        1  26
Packit Service 21b5d1
Exif.Photo.DateTimeOriginal                  0x9003 Ascii      18  Yesterday at noon
Packit Service 21b5d1
MIME type:  image/tiff
Packit Service 21b5d1
Image size: 9 x 9
Packit Service 21b5d1
Before
Packit Service 21b5d1
Exif.Image.NewSubfileType                    0x00fe Long        1  0
Packit Service 21b5d1
Exif.Image.ImageWidth                        0x0100 Short       1  9
Packit Service 21b5d1
Exif.Image.ImageLength                       0x0101 Short       1  9
Packit Service 21b5d1
Exif.Image.BitsPerSample                     0x0102 Short       3  8 8 8
Packit Service 21b5d1
Exif.Image.Compression                       0x0103 Short       1  1
Packit Service 21b5d1
Exif.Image.PhotometricInterpretation         0x0106 Short       1  2
Packit Service 21b5d1
Exif.Image.DocumentName                      0x010d Ascii      24  /home/ahuggel/mini9.tif
Packit Service 21b5d1
Exif.Image.ImageDescription                  0x010e Ascii      18  Created with GIMP
Packit Service 21b5d1
Exif.Image.StripOffsets                      0x0111 Long        1  8
Packit Service 21b5d1
Exif.Image.Orientation                       0x0112 Short       1  1
Packit Service 21b5d1
Exif.Image.SamplesPerPixel                   0x0115 Short       1  3
Packit Service 21b5d1
Exif.Image.RowsPerStrip                      0x0116 Short       1  64
Packit Service 21b5d1
Exif.Image.StripByteCounts                   0x0117 Long        1  243
Packit Service 21b5d1
Exif.Image.XResolution                       0x011a Rational    1  1207959552/16777216
Packit Service 21b5d1
Exif.Image.YResolution                       0x011b Rational    1  1207959552/16777216
Packit Service 21b5d1
Exif.Image.PlanarConfiguration               0x011c Short       1  1
Packit Service 21b5d1
Exif.Image.ResolutionUnit                    0x0128 Short       1  2
Packit Service 21b5d1
======
Packit Service 21b5d1
After
Packit Service 21b5d1
Exif.Image.NewSubfileType                    0x00fe Long        1  0
Packit Service 21b5d1
Exif.Image.ImageWidth                        0x0100 Short       1  9
Packit Service 21b5d1
Exif.Image.ImageLength                       0x0101 Short       1  9
Packit Service 21b5d1
Exif.Image.BitsPerSample                     0x0102 Short       3  8 8 8
Packit Service 21b5d1
Exif.Image.Compression                       0x0103 Short       1  1
Packit Service 21b5d1
Exif.Image.PhotometricInterpretation         0x0106 Short       1  2
Packit Service 21b5d1
Exif.Image.DocumentName                      0x010d Ascii      24  /home/ahuggel/mini9.tif
Packit Service 21b5d1
Exif.Image.ImageDescription                  0x010e Ascii      18  Created with GIMP
Packit Service 21b5d1
Exif.Image.StripOffsets                      0x0111 Long        1  8
Packit Service 21b5d1
Exif.Image.Orientation                       0x0112 Short       1  1
Packit Service 21b5d1
Exif.Image.SamplesPerPixel                   0x0115 Short       1  3
Packit Service 21b5d1
Exif.Image.RowsPerStrip                      0x0116 Short       1  64
Packit Service 21b5d1
Exif.Image.StripByteCounts                   0x0117 Long        1  243
Packit Service 21b5d1
Exif.Image.XResolution                       0x011a Rational    1  1207959552/16777216
Packit Service 21b5d1
Exif.Image.YResolution                       0x011b Rational    1  1207959552/16777216
Packit Service 21b5d1
Exif.Image.PlanarConfiguration               0x011c Short       1  1
Packit Service 21b5d1
Exif.Image.ResolutionUnit                    0x0128 Short       1  2
Packit Service 21b5d1
Exif.Photo.DateTimeOriginal                  0x9003 Ascii      18  Yesterday at noon
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
    stderr = [""]
Packit Service 21b5d1
    retval = [0]