From 65c6966c9209c0241c30f67fb02c7d328ff6549c Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 9 Dec 2015 19:07:42 +0100 Subject: Add the same kind of test than in 80244ec Namely, file-format specific ones --- test/libtest.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/libtest.py b/test/libtest.py index fa65528..64b2c78 100644 --- a/test/libtest.py +++ b/test/libtest.py @@ -34,6 +34,15 @@ class TestRemovelib(test.MATTest): current_file = libmat.mat.create_class_file(dirty, False, add2archive=True) self.assertTrue(current_file.is_clean()) + def test_remove_fileformat_specific_options(self): + """ test metadata removal with fileformat-specific options """ + for _, dirty in self.file_list: # can't be faster than that :/ + if dirty.endswith('pdf'): + current_file = libmat.mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True) + current_file.remove_all() + current_file = libmat.mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True) + self.assertTrue(current_file.is_clean()) + def test_remove_empty(self): """Test removal with clean files""" for clean, _ in self.file_list: -- cgit v1.3