aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-04-07 19:30:47 +0100
committerremitamine <remitamine@gmail.com>2016-04-21 16:34:54 +0100
commitacaff49575f9f0c2ea893c4dbbbf57ba8baf656a (patch)
treeedf4d1e01fcfea3f0009418fd1b10784c6e209a5 /test/test_utils.py
parented6fb8b804448724fcd1ba4abc3fa028b817efe2 (diff)
[utils] imporove parse_duration to handle more formats
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index a35debfe1..e0323a5c6 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -405,6 +405,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(parse_duration('01:02:03:04'), 93784)
self.assertEqual(parse_duration('1 hour 3 minutes'), 3780)
self.assertEqual(parse_duration('87 Min.'), 5220)
+ self.assertEqual(parse_duration('PT1H0.040S'), 3600.04)
def test_fix_xml_ampersands(self):
self.assertEqual(