Improve PoDoFo test a bit

This commit is contained in:
Kovid Goyal 2019-07-31 16:06:01 +05:30
parent 334997de14
commit 91b812b718
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -185,7 +185,8 @@ def test_podofo():
p = podofo.PDFDoc()
p.open(f.name)
if (p.title, p.author) != (mi.title, mi.authors[0]):
raise ValueError('podofo failed to set title and author in Info dict')
raise ValueError('podofo failed to set title and author in Info dict %s != %s' % (
(p.title, p.author), (mi.title, mi.authors[0])))
if not p.get_xmp_metadata():
raise ValueError('podofo failed to write XMP packet')
del p