summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_corrupted_files.py6
1 files changed, 6 insertions, 0 deletions
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):
85 with self.assertRaises(ValueError): 85 with self.assertRaises(ValueError):
86 audio.MP3Parser('./tests/data/clean.mp3') 86 audio.MP3Parser('./tests/data/clean.mp3')
87 os.remove('./tests/data/clean.mp3') 87 os.remove('./tests/data/clean.mp3')
88
89 def test_jpg(self):
90 shutil.copy('./tests/data/dirty.mp3', './tests/data/clean.jpg')
91 with self.assertRaises(ValueError):
92 images.JPGParser('./tests/data/clean.jpg')
93 os.remove('./tests/data/clean.jpg')