diff options
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') | ||
