From 9f631a1bb16ee60cbc893fad781f526ffc212f0f Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 7 Jul 2018 18:02:53 +0200 Subject: [PATCH] Bump a bit the coverage --- tests/test_corrupted_files.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index 1beb2ba..bc5b9d0 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py @@ -85,3 +85,9 @@ class TestCorruptedFiles(unittest.TestCase): with self.assertRaises(ValueError): audio.MP3Parser('./tests/data/clean.mp3') os.remove('./tests/data/clean.mp3') + + def test_jpg(self): + shutil.copy('./tests/data/dirty.mp3', './tests/data/clean.jpg') + with self.assertRaises(ValueError): + images.JPGParser('./tests/data/clean.jpg') + os.remove('./tests/data/clean.jpg')