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