diff options
| author | jvoisin | 2018-10-22 16:45:30 +0200 |
|---|---|---|
| committer | jvoisin | 2018-10-22 16:56:05 +0200 |
| commit | 44f267a5964ea8dbb59c26c319e43fad84afb45a (patch) | |
| tree | f943cac833ff09ebbbcfac64315d61b6d4f5b73f /tests/test_libmat2.py | |
| parent | 5bc88faedf457f32c007a60a5145bec0dca60523 (diff) | |
Improve problematic filenames support
Diffstat (limited to 'tests/test_libmat2.py')
| -rw-r--r-- | tests/test_libmat2.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index e5cc8a3..241c6eb 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -37,6 +37,19 @@ class TestParameterInjection(unittest.TestCase): | |||
| 37 | self.assertEqual(meta['ModifyDate'], "2018:03:20 21:59:25") | 37 | self.assertEqual(meta['ModifyDate'], "2018:03:20 21:59:25") |
| 38 | os.remove('-ver') | 38 | os.remove('-ver') |
| 39 | 39 | ||
| 40 | def test_ffmpeg_injection(self): | ||
| 41 | try: | ||
| 42 | video._get_ffmpeg_path() | ||
| 43 | except RuntimeError: | ||
| 44 | raise unittest.SkipTest | ||
| 45 | |||
| 46 | shutil.copy('./tests/data/dirty.avi', './--output') | ||
| 47 | p = video.AVIParser('--output') | ||
| 48 | meta = p.get_meta() | ||
| 49 | print(meta) | ||
| 50 | self.assertEqual(meta['Software'], 'MEncoder SVN-r33148-4.0.1') | ||
| 51 | os.remove('--output') | ||
| 52 | |||
| 40 | 53 | ||
| 41 | class TestUnsupportedEmbeddedFiles(unittest.TestCase): | 54 | class TestUnsupportedEmbeddedFiles(unittest.TestCase): |
| 42 | def test_odt_with_svg(self): | 55 | def test_odt_with_svg(self): |
