diff options
| author | jvoisin | 2018-07-07 18:02:53 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-07 18:02:53 +0200 |
| commit | 9f631a1bb16ee60cbc893fad781f526ffc212f0f (patch) | |
| tree | 593b2f8d91b22617eadc84d7140cd837ddd5215c /tests | |
| parent | c2ef35d1f177db98813f697c73c86de477f17c39 (diff) | |
Bump a bit the coverage
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_corrupted_files.py | 6 |
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') | ||
