diff options
| author | jvoisin | 2019-02-03 22:55:15 +0100 |
|---|---|---|
| committer | jvoisin | 2019-02-04 00:31:26 +0100 |
| commit | b9a62d798af14ea799ae5fceab1ed7a537d1cbdd (patch) | |
| tree | a50622baf990acface31398adaef395bb398ed5d /tests/test_libmat2.py | |
| parent | 54e50450ad9f8657ed7c60d5c0f9ab5c648d08ee (diff) | |
Refactor a bit office get_meta handling
This should make easier to get more metadata from
archive-based file formats.
Diffstat (limited to '')
| -rw-r--r-- | tests/test_libmat2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 9354286..d692181 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -131,9 +131,9 @@ class TestGetMeta(unittest.TestCase): | |||
| 131 | def test_docx(self): | 131 | def test_docx(self): |
| 132 | p = office.MSOfficeParser('./tests/data/dirty.docx') | 132 | p = office.MSOfficeParser('./tests/data/dirty.docx') |
| 133 | meta = p.get_meta() | 133 | meta = p.get_meta() |
| 134 | self.assertEqual(meta['cp:lastModifiedBy'], 'Julien Voisin') | 134 | self.assertEqual(meta['docProps/core.xml']['cp:lastModifiedBy'], 'Julien Voisin') |
| 135 | self.assertEqual(meta['dc:creator'], 'julien voisin') | 135 | self.assertEqual(meta['docProps/core.xml']['dc:creator'], 'julien voisin') |
| 136 | self.assertEqual(meta['Application'], 'LibreOffice/5.4.5.1$Linux_X86_64 LibreOffice_project/40m0$Build-1') | 136 | self.assertEqual(meta['docProps/app.xml']['Application'], 'LibreOffice/5.4.5.1$Linux_X86_64 LibreOffice_project/40m0$Build-1') |
| 137 | 137 | ||
| 138 | def test_libreoffice(self): | 138 | def test_libreoffice(self): |
| 139 | p = office.LibreOfficeParser('./tests/data/dirty.odt') | 139 | p = office.LibreOfficeParser('./tests/data/dirty.odt') |
