diff options
Diffstat (limited to 'tests/test_libmat2.py')
| -rw-r--r-- | tests/test_libmat2.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 84eb75e..3d08dea 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -35,6 +35,14 @@ class TestUnsupportedFiles(unittest.TestCase): | |||
| 35 | self.assertEqual(parser, None) | 35 | self.assertEqual(parser, None) |
| 36 | os.remove('./tests/clean.py') | 36 | os.remove('./tests/clean.py') |
| 37 | 37 | ||
| 38 | class TestExplicitelyUnsupportedFiles(unittest.TestCase): | ||
| 39 | def test_pdf(self): | ||
| 40 | shutil.copy('./tests/test_libmat2.py', './tests/clean.txt') | ||
| 41 | parser, mimetype = parser_factory.get_parser('./tests/data/clean.txt') | ||
| 42 | self.assertEqual(mimetype, 'text/plain') | ||
| 43 | self.assertEqual(parser, None) | ||
| 44 | os.remove('./tests/clean.txt') | ||
| 45 | |||
| 38 | 46 | ||
| 39 | class TestCorruptedFiles(unittest.TestCase): | 47 | class TestCorruptedFiles(unittest.TestCase): |
| 40 | def test_pdf(self): | 48 | def test_pdf(self): |
