|
|
@ -211,6 +211,9 @@ class TestUtil(unittest.TestCase):
|
|
|
|
self.assertEqual(parse_duration('00:01:01'), 61)
|
|
|
|
self.assertEqual(parse_duration('00:01:01'), 61)
|
|
|
|
self.assertEqual(parse_duration('x:y'), None)
|
|
|
|
self.assertEqual(parse_duration('x:y'), None)
|
|
|
|
self.assertEqual(parse_duration('3h11m53s'), 11513)
|
|
|
|
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('62m45s'), 3765)
|
|
|
|
self.assertEqual(parse_duration('6m59s'), 419)
|
|
|
|
self.assertEqual(parse_duration('6m59s'), 419)
|
|
|
|
self.assertEqual(parse_duration('49s'), 49)
|
|
|
|
self.assertEqual(parse_duration('49s'), 49)
|
|
|
|