diff options
author | Jesús <heckyel@hyperbola.info> | 2021-10-31 11:36:52 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-10-31 11:36:52 -0500 |
commit | 5bb25093eb718346ab8a723d2c04f0066fc3958a (patch) | |
tree | 8a7fa5611895a933eaf1ef1623f7b9e1a1c36157 /test/test_utils.py | |
parent | c7afb25e19a91493db6069d1db9f7d1bc8491dc1 (diff) | |
parent | 652fb0d446524af4b783276babd55f5fc6a3afeb (diff) | |
download | hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.lz hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.xz hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.zip |
updated from upstream | 31/10/2021 at 11:36
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index d84c3d3ee..810ed3de4 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1163,12 +1163,15 @@ class TestUtil(unittest.TestCase): def test_parse_resolution(self): self.assertEqual(parse_resolution(None), {}) self.assertEqual(parse_resolution(''), {}) - self.assertEqual(parse_resolution('1920x1080'), {'width': 1920, 'height': 1080}) - self.assertEqual(parse_resolution('1920×1080'), {'width': 1920, 'height': 1080}) + self.assertEqual(parse_resolution(' 1920x1080'), {'width': 1920, 'height': 1080}) + self.assertEqual(parse_resolution('1920×1080 '), {'width': 1920, 'height': 1080}) self.assertEqual(parse_resolution('1920 x 1080'), {'width': 1920, 'height': 1080}) self.assertEqual(parse_resolution('720p'), {'height': 720}) self.assertEqual(parse_resolution('4k'), {'height': 2160}) self.assertEqual(parse_resolution('8K'), {'height': 4320}) + self.assertEqual(parse_resolution('pre_1920x1080_post'), {'width': 1920, 'height': 1080}) + self.assertEqual(parse_resolution('ep1x2'), {}) + self.assertEqual(parse_resolution('1920, 1080'), {'width': 1920, 'height': 1080}) def test_parse_bitrate(self): self.assertEqual(parse_bitrate(None), None) |