From 53271495f74bde7fde2329b7c5c938654a36b7dc Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 6 Jul 2018 00:42:09 +0200 Subject: Add support for .txt files --- tests/test_corrupted_files.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_corrupted_files.py') 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): class TestExplicitelyUnsupportedFiles(unittest.TestCase): def test_pdf(self): - shutil.copy('./tests/test_libmat2.py', './tests/clean.txt') - parser, mimetype = parser_factory.get_parser('./tests/data/clean.txt') - self.assertEqual(mimetype, 'text/plain') + shutil.copy('./tests/test_libmat2.py', './tests/data/clean.py') + parser, mimetype = parser_factory.get_parser('./tests/data/clean.py') + self.assertEqual(mimetype, 'text/x-python') self.assertEqual(parser, None) - os.remove('./tests/clean.txt') + os.remove('./tests/data/clean.py') class TestCorruptedFiles(unittest.TestCase): -- cgit v1.3