summaryrefslogtreecommitdiff
path: root/tests/test_corrupted_files.py
diff options
context:
space:
mode:
authorjvoisin2018-07-06 00:42:09 +0200
committerjvoisin2018-07-06 00:42:09 +0200
commit53271495f74bde7fde2329b7c5c938654a36b7dc (patch)
tree1a4b73671b53b3da6a20694d77c54ef40cdecb72 /tests/test_corrupted_files.py
parent0638b9bbbbe9fa5de50c01ea160a53f0e7162d59 (diff)
Add support for .txt files
Diffstat (limited to 'tests/test_corrupted_files.py')
-rw-r--r--tests/test_corrupted_files.py8
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
19class TestExplicitelyUnsupportedFiles(unittest.TestCase): 19class 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
28class TestCorruptedFiles(unittest.TestCase): 28class TestCorruptedFiles(unittest.TestCase):