1
0
mirror of synced 2024-11-12 20:38:53 +01:00

Bump coverage again

This commit is contained in:
jvoisin 2018-07-08 21:50:52 +02:00
parent ad3e7ccee8
commit 52a2c800b7
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -104,6 +104,11 @@ class TestGetMeta(unittest.TestCase):
self.assertEqual(meta['meta:creation-date'], '2011-07-26T03:27:48')
self.assertEqual(meta['meta:generator'], 'LibreOffice/3.3$Unix LibreOffice_project/330m19$Build-202')
p = office.LibreOfficeParser('./tests/data/weird_producer.odt')
meta = p.get_meta()
self.assertEqual(meta['create_system'], 'Windows')
self.assertEqual(meta['comment'], b'YAY FOR COMMENTS')
def test_txt(self):
p, mimetype = parser_factory.get_parser('./tests/data/dirty.txt')
self.assertEqual(mimetype, 'text/plain')