# -*- coding: utf-8 -*- import system_tests @system_tests.CopyFiles("$data_path/exiv2-bug1112.xmp") class CheckXmpTimeZoneInformation(metaclass=system_tests.CaseMeta): url = "http://dev.exiv2.org/issues/1112" filename = system_tests.path("$data_path/exiv2-bug1112_copy.xmp") commands = [ """$exiv2 -M "del Xmp.dc.title" $filename""" ] stdout = [ "" ] stderr = [""] retval = [0] xmp_packet = """ """ def post_tests_hook(self): with open(self.filename, "r", encoding='utf-8') as xmp_file: self.assertMultiLineEqual(self.xmp_packet, xmp_file.read(-1))