summaryrefslogtreecommitdiff
path: root/test/libtest.py
diff options
context:
space:
mode:
authorjvoisin2015-12-09 19:07:42 +0100
committerjvoisin2015-12-09 19:07:42 +0100
commit65c6966c9209c0241c30f67fb02c7d328ff6549c (patch)
tree36e8b0da62561f1af7f2048e44e522533c05a91f /test/libtest.py
parent1ab3dd3eedd9d7fa44f3bd1be000d23a6c34ea04 (diff)
Add the same kind of test than in 80244ec
Namely, file-format specific ones
Diffstat (limited to 'test/libtest.py')
-rw-r--r--test/libtest.py9
1 files changed, 9 insertions, 0 deletions
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):
34 current_file = libmat.mat.create_class_file(dirty, False, add2archive=True) 34 current_file = libmat.mat.create_class_file(dirty, False, add2archive=True)
35 self.assertTrue(current_file.is_clean()) 35 self.assertTrue(current_file.is_clean())
36 36
37 def test_remove_fileformat_specific_options(self):
38 """ test metadata removal with fileformat-specific options """
39 for _, dirty in self.file_list: # can't be faster than that :/
40 if dirty.endswith('pdf'):
41 current_file = libmat.mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True)
42 current_file.remove_all()
43 current_file = libmat.mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True)
44 self.assertTrue(current_file.is_clean())
45
37 def test_remove_empty(self): 46 def test_remove_empty(self):
38 """Test removal with clean files""" 47 """Test removal with clean files"""
39 for clean, _ in self.file_list: 48 for clean, _ in self.file_list: