1
0
mirror of synced 2024-11-25 10:44:23 +01:00

Bump a bit the coverage

This commit is contained in:
jvoisin 2018-07-07 18:02:53 +02:00
parent c2ef35d1f1
commit 9f631a1bb1

View File

@ -85,3 +85,9 @@ class TestCorruptedFiles(unittest.TestCase):
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
audio.MP3Parser('./tests/data/clean.mp3') audio.MP3Parser('./tests/data/clean.mp3')
os.remove('./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')