From 44f267a5964ea8dbb59c26c319e43fad84afb45a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 22 Oct 2018 16:45:30 +0200 Subject: Improve problematic filenames support --- tests/test_libmat2.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') 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): self.assertEqual(meta['ModifyDate'], "2018:03:20 21:59:25") os.remove('-ver') + def test_ffmpeg_injection(self): + try: + video._get_ffmpeg_path() + except RuntimeError: + raise unittest.SkipTest + + shutil.copy('./tests/data/dirty.avi', './--output') + p = video.AVIParser('--output') + meta = p.get_meta() + print(meta) + self.assertEqual(meta['Software'], 'MEncoder SVN-r33148-4.0.1') + os.remove('--output') + class TestUnsupportedEmbeddedFiles(unittest.TestCase): def test_odt_with_svg(self): -- cgit v1.3