diff options
author | Sergey M <dstftw@gmail.com> | 2016-04-21 22:53:16 +0700 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2016-04-21 22:53:16 +0700 |
commit | b6c0d4f4315a282257adc6ab980b4cf4bfb3d418 (patch) | |
tree | 67de013912911cb6009b5bf517363a3ae26bc5f1 /test | |
parent | 1da19488f906841cbfa285ad5ea378003c68ddf2 (diff) | |
parent | acaff49575f9f0c2ea893c4dbbbf57ba8baf656a (diff) |
Merge pull request #9110 from remitamine/parse_duration
[utils] imporove parse_duration to handle more formats
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 0f36bb9f0..e16a6761b 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -413,6 +413,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( |