projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268e132
)
[test_utils] add tests for b836118724122a639a1cb78d55d91724bf1e7251
author
Remita Amine
<remitamine@gmail.com>
Wed, 23 May 2018 11:20:05 +0000
(12:20 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Wed, 23 May 2018 11:20:05 +0000
(12:20 +0100)
test/test_utils.py
patch
|
blob
|
history
diff --git
a/test/test_utils.py
b/test/test_utils.py
index 14503ab5355e1c907c2b4c4bf9bf2f8b56e9548a..f2b51131c2aa6a9b3570343f93ac0148a80a5c84 100644
(file)
--- a/
test/test_utils.py
+++ b/
test/test_utils.py
@@
-519,6
+519,8
@@
class TestUtil(unittest.TestCase):
self.assertEqual(parse_age_limit('PG-13'), 13)
self.assertEqual(parse_age_limit('TV-14'), 14)
self.assertEqual(parse_age_limit('TV-MA'), 17)
+ self.assertEqual(parse_age_limit('TV14'), 14)
+ self.assertEqual(parse_age_limit('TV_G'), 0)
def test_parse_duration(self):
self.assertEqual(parse_duration(None), None)