diff options
| author | jvoisin | 2018-07-06 00:42:09 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-06 00:42:09 +0200 |
| commit | 53271495f74bde7fde2329b7c5c938654a36b7dc (patch) | |
| tree | 1a4b73671b53b3da6a20694d77c54ef40cdecb72 /tests/test_corrupted_files.py | |
| parent | 0638b9bbbbe9fa5de50c01ea160a53f0e7162d59 (diff) | |
Add support for .txt files
Diffstat (limited to 'tests/test_corrupted_files.py')
| -rw-r--r-- | tests/test_corrupted_files.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index b784b0e..4b2243d 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py | |||
| @@ -18,11 +18,11 @@ class TestUnsupportedFiles(unittest.TestCase): | |||
| 18 | 18 | ||
| 19 | class TestExplicitelyUnsupportedFiles(unittest.TestCase): | 19 | class TestExplicitelyUnsupportedFiles(unittest.TestCase): |
| 20 | def test_pdf(self): | 20 | def test_pdf(self): |
| 21 | shutil.copy('./tests/test_libmat2.py', './tests/clean.txt') | 21 | shutil.copy('./tests/test_libmat2.py', './tests/data/clean.py') |
| 22 | parser, mimetype = parser_factory.get_parser('./tests/data/clean.txt') | 22 | parser, mimetype = parser_factory.get_parser('./tests/data/clean.py') |
| 23 | self.assertEqual(mimetype, 'text/plain') | 23 | self.assertEqual(mimetype, 'text/x-python') |
| 24 | self.assertEqual(parser, None) | 24 | self.assertEqual(parser, None) |
| 25 | os.remove('./tests/clean.txt') | 25 | os.remove('./tests/data/clean.py') |
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | class TestCorruptedFiles(unittest.TestCase): | 28 | class TestCorruptedFiles(unittest.TestCase): |
