diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-08-31 06:44:14 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-08-31 06:44:14 +0700 |
commit | 6a400a6339911333517bfa59f5f7c2a05d948f19 (patch) | |
tree | ce3b993bb50b34b0211975bc9812bcf08b4b0dce /test/test_utils.py | |
parent | 08a36c35693d212405a50b490f7f1828830e60ee (diff) | |
parent | 7b53af7f70da81eae41da645cc5af2c777c5c8e5 (diff) |
Merge branch 'peugeot-vporn'
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 3d14f61fb..8d8997977 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -211,6 +211,9 @@ class TestUtil(unittest.TestCase): self.assertEqual(parse_duration('00:01:01'), 61) self.assertEqual(parse_duration('x:y'), None) self.assertEqual(parse_duration('3h11m53s'), 11513) + self.assertEqual(parse_duration('3h 11m 53s'), 11513) + self.assertEqual(parse_duration('3 hours 11 minutes 53 seconds'), 11513) + self.assertEqual(parse_duration('3 hours 11 mins 53 secs'), 11513) self.assertEqual(parse_duration('62m45s'), 3765) self.assertEqual(parse_duration('6m59s'), 419) self.assertEqual(parse_duration('49s'), 49) |