From a5fb718c50d394aeee827f6e9381eceb839128de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Mon, 12 Jan 2015 21:39:58 +0600 Subject: [PATCH] [test_utils] Add more tests for parse_duration --- test/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.22.2