summaryrefslogtreecommitdiff
path: root/tests/test_libmat2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_libmat2.py')
-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')