exiv2/tests/bugfixes/github/test_issue_1471.py
2023-06-02 00:25:13 +08:00

19 lines
782 B
Python

# -*- coding: utf-8 -*-
from system_tests import CaseMeta, CopyTmpFiles, path
@CopyTmpFiles("$data_path/test_issue_1471.exv")
class test_issue_1471Test(metaclass=CaseMeta):
filename = path("$tmp_path/test_issue_1471.exv")
commands = [ "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename"
, "$exiv2 -M\"set Exif.Image.ImageID foobar\" $filename"
, "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename"
]
stdout = ["Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n"
,""
,"Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n"
]
stderr = [""]*len(commands)
retval = [ 0]*len(commands)