[Pkg-privacy-commits] [mat] 46/68: Add the same kind of test than in 80244ec

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 65c6966c9209c0241c30f67fb02c7d328ff6549c
Author: jvoisin <julien.voisin at dustri.org>
Date:   Wed Dec 9 19:07:42 2015 +0100

    Add the same kind of test than in 80244ec
    
    Namely, file-format specific ones
---
 test/libtest.py | 9 +++++++++
 1 file changed, 9 insertions(+)

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:

-- 
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