diff options
| author | jvoisin | 2019-02-07 21:58:10 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-07 22:19:37 +0100 |
| commit | e1dd439fc86ba15816e2331e8bed67dd7147e368 (patch) | |
| tree | 0c8e368fcb9c409fa2182018b166ec4f18cdd98c /tests/test_corrupted_files.py | |
| parent | b9a62d798af14ea799ae5fceab1ed7a537d1cbdd (diff) | |
Use of the archive refactoring for the office documents too
Diffstat (limited to 'tests/test_corrupted_files.py')
| -rw-r--r-- | tests/test_corrupted_files.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index e7d3c2a..b2e7798 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py | |||
| @@ -67,15 +67,10 @@ class TestCorruptedEmbedded(unittest.TestCase): | |||
| 67 | os.remove('./tests/data/clean.docx') | 67 | os.remove('./tests/data/clean.docx') |
| 68 | 68 | ||
| 69 | def test_odt(self): | 69 | def test_odt(self): |
| 70 | expected = { | ||
| 71 | 'create_system': 'Weird', | ||
| 72 | 'date_time': '2018-06-10 17:18:18', | ||
| 73 | 'meta.xml': 'harmful content' | ||
| 74 | } | ||
| 75 | shutil.copy('./tests/data/embedded_corrupted.odt', './tests/data/clean.odt') | 70 | shutil.copy('./tests/data/embedded_corrupted.odt', './tests/data/clean.odt') |
| 76 | parser, _ = parser_factory.get_parser('./tests/data/clean.odt') | 71 | parser, _ = parser_factory.get_parser('./tests/data/clean.odt') |
| 77 | self.assertFalse(parser.remove_all()) | 72 | self.assertFalse(parser.remove_all()) |
| 78 | self.assertEqual(parser.get_meta(), expected) | 73 | self.assertTrue(parser.get_meta()) |
| 79 | os.remove('./tests/data/clean.odt') | 74 | os.remove('./tests/data/clean.odt') |
| 80 | 75 | ||
| 81 | 76 | ||
