summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_libmat2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py
index 4b312de..e1d949d 100644
--- a/tests/test_libmat2.py
+++ b/tests/test_libmat2.py
@@ -90,6 +90,11 @@ class TestCorruptedFiles(unittest.TestCase):
90 90
91 os.remove('./tests/data/clean.torrent') 91 os.remove('./tests/data/clean.torrent')
92 92
93 def test_odg(self):
94 shutil.copy('./tests/data/dirty.png', './tests/data/clean.odg')
95 with self.assertRaises(ValueError):
96 office.LibreOfficeParser('./tests/data/clean.odg')
97
93class TestGetMeta(unittest.TestCase): 98class TestGetMeta(unittest.TestCase):
94 def test_pdf(self): 99 def test_pdf(self):
95 p = pdf.PDFParser('./tests/data/dirty.pdf') 100 p = pdf.PDFParser('./tests/data/dirty.pdf')