diff options
| author | jvoisin | 2018-04-04 23:21:48 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-04 23:21:48 +0200 |
| commit | 0239ab3b6a6ae38dbf5ba439f91f0cee498711a9 (patch) | |
| tree | 19159991a5fe0d504ebbd2396800a9a1fda38a09 /tests/test_libmat2.py | |
| parent | 9fa76c4c2038a776cc94af5d9f307bbaad52083c (diff) | |
Add some white lines to make the code more compliant
Diffstat (limited to 'tests/test_libmat2.py')
| -rw-r--r-- | tests/test_libmat2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index c2864c6..4cfb80a 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -8,6 +8,7 @@ import tempfile | |||
| 8 | 8 | ||
| 9 | from src import pdf, images, audio, office, parser_factory | 9 | from src import pdf, images, audio, office, parser_factory |
| 10 | 10 | ||
| 11 | |||
| 11 | class TestParserFactory(unittest.TestCase): | 12 | class TestParserFactory(unittest.TestCase): |
| 12 | def test_subsubcalss(self): | 13 | def test_subsubcalss(self): |
| 13 | """ Test that our module auto-detection is handling sub-sub-classes """ | 14 | """ Test that our module auto-detection is handling sub-sub-classes """ |
| @@ -15,6 +16,7 @@ class TestParserFactory(unittest.TestCase): | |||
| 15 | self.assertEqual(mimetype, 'audio/mpeg') | 16 | self.assertEqual(mimetype, 'audio/mpeg') |
| 16 | self.assertEqual(parser.__class__, audio.MP3Parser) | 17 | self.assertEqual(parser.__class__, audio.MP3Parser) |
| 17 | 18 | ||
| 19 | |||
| 18 | class TestGetMeta(unittest.TestCase): | 20 | class TestGetMeta(unittest.TestCase): |
| 19 | def test_pdf(self): | 21 | def test_pdf(self): |
| 20 | p = pdf.PDFParser('./tests/data/dirty.pdf') | 22 | p = pdf.PDFParser('./tests/data/dirty.pdf') |
| @@ -132,6 +134,7 @@ class TestDeepCleaning(unittest.TestCase): | |||
| 132 | 134 | ||
| 133 | os.remove('./tests/data/clean.odt') | 135 | os.remove('./tests/data/clean.odt') |
| 134 | 136 | ||
| 137 | |||
| 135 | class TestCleaning(unittest.TestCase): | 138 | class TestCleaning(unittest.TestCase): |
| 136 | def test_pdf(self): | 139 | def test_pdf(self): |
| 137 | shutil.copy('./tests/data/dirty.pdf', './tests/data/clean.pdf') | 140 | shutil.copy('./tests/data/dirty.pdf', './tests/data/clean.pdf') |
