aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-12 21:39:58 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-12 21:39:58 +0600
commita5fb718c50d394aeee827f6e9381eceb839128de (patch)
tree2410fb37b3c9b376ef1b62f787165bcdf843130e
parent227d4822fff13ea449f11531ce54c56b2b01432b (diff)
[test_utils] Add more tests for parse_duration
-rw-r--r--test/test_utils.py2
1 files changed, 2 insertions, 0 deletions
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)