diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-06-14 01:56:17 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-06-14 01:56:17 +0700 |
commit | 28cc2241e44ff0c0704cfffaca6d47d377041aa5 (patch) | |
tree | 25809e15d487f1de2eef39fbaa94f83ae9e9bb67 /test/test_utils.py | |
parent | 8361e7f93489f226542517216b2127ff170ca996 (diff) |
[utils] Restrict parse_codecs and add theora as known vcodec (#21381)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 71980b3fc..659c6ece5 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -822,6 +822,15 @@ class TestUtil(unittest.TestCase): 'vcodec': 'av01.0.05M.08', 'acodec': 'none', }) + self.assertEqual(parse_codecs('theora, vorbis'), { + 'vcodec': 'theora', + 'acodec': 'vorbis', + }) + self.assertEqual(parse_codecs('unknownvcodec, unknownacodec'), { + 'vcodec': 'unknownvcodec', + 'acodec': 'unknownacodec', + }) + self.assertEqual(parse_codecs('unknown'), {}) def test_escape_rfc3986(self): reserved = "!*'();:@&=+$,/?#[]" |