[Pkg-privacy-commits] [mat] 44/68: Add a PDF-specific test

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

sascha-guest pushed a commit to branch master
in repository mat.

commit 80244ecd1fa49d1147e64ff8ffc9b310e635be34
Author: jvoisin <julien.voisin at dustri.org>
Date:   Tue Dec 8 15:39:33 2015 +0100

    Add a PDF-specific test
---
 test/clitest.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/clitest.py b/test/clitest.py
index ccac675..195defa 100644
--- a/test/clitest.py
+++ b/test/clitest.py
@@ -35,6 +35,14 @@ class TestRemovecli(test.MATTest):
             current_file = mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=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'):
+                subprocess.call([MAT_PATH, '--low-pdf-quality', dirty])
+                current_file = mat.create_class_file(dirty, False, low_pdf_quality=True)
+                self.assertTrue(current_file.is_clean())
+
     def test_remove_empty(self):
         """Test removal with clean files\n"""
         for clean, _ in self.file_list:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git



More information about the Pkg-privacy-commits mailing list