summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2018-06-10 20:20:45 +0200
committerjvoisin2018-06-10 20:20:45 +0200
commit4600ce3490401c738854c5a486512fc47a67054b (patch)
tree653bb9da08f8b94a3c09669b56112f1dc3f8e3f1 /tests
parent545887af98ccd97157046a67ac542ec3bfdbdfdf (diff)
Improve a bit the coverage
Diffstat (limited to 'tests')
-rw-r--r--tests/test_libmat2.py6
1 files changed, 6 insertions, 0 deletions
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):
70 images.PNGParser('./tests/data/clean.pdf') 70 images.PNGParser('./tests/data/clean.pdf')
71 os.remove('./tests/data/clean.pdf') 71 os.remove('./tests/data/clean.pdf')
72 72
73 def test_png2(self):
74 shutil.copy('./tests/test_libmat2.py', './tests/clean.png')
75 parser, mimetype = parser_factory.get_parser('./tests/clean.png')
76 self.assertIsNone(parser)
77 os.remove('./tests/clean.png')
78
73 def test_torrent(self): 79 def test_torrent(self):
74 shutil.copy('./tests/data/dirty.png', './tests/data/clean.torrent') 80 shutil.copy('./tests/data/dirty.png', './tests/data/clean.torrent')
75 p = torrent.TorrentParser('./tests/data/clean.torrent') 81 p = torrent.TorrentParser('./tests/data/clean.torrent')