diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/libtest.py | 9 |
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: |
