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