diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index 1beb2badc474a3c4297c284c8c16fb85a316ab74..bc5b9d095886522c34b0518a13bf3c40cdb15ef0 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')