From: Sergey M․ Date: Mon, 12 Jan 2015 15:39:58 +0000 (+0600) Subject: [test_utils] Add more tests for parse_duration X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a5fb718c50d394aeee827f6e9381eceb839128de;p=youtube-dl [test_utils] Add more tests for parse_duration --- diff --git a/test/test_utils.py b/test/test_utils.py index 5e16f30a2..399cdfdbd 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -212,6 +212,8 @@ class TestUtil(unittest.TestCase): def test_parse_duration(self): self.assertEqual(parse_duration(None), None) + self.assertEqual(parse_duration(False), None) + self.assertEqual(parse_duration('invalid'), None) self.assertEqual(parse_duration('1'), 1) self.assertEqual(parse_duration('1337:12'), 80232) self.assertEqual(parse_duration('9:12:43'), 33163)