diff options
| author | jvoisin | 2018-10-22 19:12:39 +0200 |
|---|---|---|
| committer | jvoisin | 2018-10-23 13:49:58 +0200 |
| commit | 38df679a88a19db3a4a82fdb8e20a42c9a53d1a1 (patch) | |
| tree | e7eea36bae3341a97e2b9a730964cfe632fb74f5 /tests/test_corrupted_files.py | |
| parent | 44f267a5964ea8dbb59c26c319e43fad84afb45a (diff) | |
Optimize the handling of problematic files
Diffstat (limited to 'tests/test_corrupted_files.py')
| -rw-r--r-- | tests/test_corrupted_files.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py index 490ea42..82c6c3b 100644 --- a/tests/test_corrupted_files.py +++ b/tests/test_corrupted_files.py | |||
| @@ -204,3 +204,14 @@ class TestCorruptedFiles(unittest.TestCase): | |||
| 204 | p = video.AVIParser('./tests/data/clean.avi') | 204 | p = video.AVIParser('./tests/data/clean.avi') |
| 205 | self.assertFalse(p.remove_all()) | 205 | self.assertFalse(p.remove_all()) |
| 206 | os.remove('./tests/data/clean.avi') | 206 | os.remove('./tests/data/clean.avi') |
| 207 | |||
| 208 | def test_avi_injection(self): | ||
| 209 | try: | ||
| 210 | video._get_ffmpeg_path() | ||
| 211 | except RuntimeError: | ||
| 212 | raise unittest.SkipTest | ||
| 213 | |||
| 214 | shutil.copy('./tests/data/dirty.torrent', './tests/data/--output.avi') | ||
| 215 | p = video.AVIParser('./tests/data/--output.avi') | ||
| 216 | self.assertFalse(p.remove_all()) | ||
| 217 | os.remove('./tests/data/--output.avi') | ||
