summaryrefslogtreecommitdiff
path: root/tests/test_libmat2.py
diff options
context:
space:
mode:
authorjvoisin2020-03-08 12:17:56 +0100
committerjvoisin2020-03-08 14:06:27 +0100
commitd7a03d907baac73dd69c0ce77f3610e7d4bad5f4 (patch)
tree1f4ac10ff3355a162047c08c3ec79ed04f1ecbc2 /tests/test_libmat2.py
parenta23dc001cd74866204c868ef1dbf7ef7ca99b5aa (diff)
Vastly improve ppt compatibility
Diffstat (limited to '')
-rw-r--r--tests/test_libmat2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py
index 9e208ec..a6c3a9a 100644
--- a/tests/test_libmat2.py
+++ b/tests/test_libmat2.py
@@ -777,3 +777,13 @@ class TestNoSandbox(unittest.TestCase):
777 os.remove('./tests/data/clean.png') 777 os.remove('./tests/data/clean.png')
778 os.remove('./tests/data/clean.cleaned.png') 778 os.remove('./tests/data/clean.cleaned.png')
779 os.remove('./tests/data/clean.cleaned.cleaned.png') 779 os.remove('./tests/data/clean.cleaned.cleaned.png')
780
781class TestComplexOfficeFiles(unittest.TestCase):
782 def test_complex_pptx(self):
783 target = './tests/data/clean.pptx'
784 shutil.copy('./tests/data/narrated_powerpoint_presentation.pptx', target)
785 p = office.MSOfficeParser(target)
786 self.assertTrue(p.remove_all())
787
788 os.remove(target)
789 os.remove(p.output_filename)