summaryrefslogtreecommitdiff
path: root/tests/test_corrupted_files.py
diff options
context:
space:
mode:
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):