From 4600ce3490401c738854c5a486512fc47a67054b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 10 Jun 2018 20:20:45 +0200 Subject: [PATCH] Improve a bit the coverage --- tests/test_libmat2.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index c85f425..4b312de 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py @@ -70,6 +70,12 @@ class TestCorruptedFiles(unittest.TestCase): images.PNGParser('./tests/data/clean.pdf') os.remove('./tests/data/clean.pdf') + def test_png2(self): + shutil.copy('./tests/test_libmat2.py', './tests/clean.png') + parser, mimetype = parser_factory.get_parser('./tests/clean.png') + self.assertIsNone(parser) + os.remove('./tests/clean.png') + def test_torrent(self): shutil.copy('./tests/data/dirty.png', './tests/data/clean.torrent') p = torrent.TorrentParser('./tests/data/clean.torrent')