1
0
Fork 0

Bump a bit the coverage

This commit is contained in:
jvoisin 2018-07-07 18:02:53 +02:00
parent c2ef35d1f1
commit 9f631a1bb1
1 changed files with 6 additions and 0 deletions

View File

@ -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')