aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-10-29 07:04:48 +0700
committerSergey M․ <dstftw@gmail.com>2017-10-29 07:04:48 +0700
commit056653bbb1b94ba04f331ed4c27a1c0d24fe1e30 (patch)
tree142b8eddeacc00b056040155b923d8db2d7fd0a7 /test
parentc3206d02e94ce98c6467762a228a9e58616c6d8f (diff)
[utils] Add support for zero years and months in parse_duration
Diffstat (limited to 'test')
-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 efa73d0f4..cc13f795c 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -540,6 +540,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(parse_duration('87 Min.'), 5220)
self.assertEqual(parse_duration('PT1H0.040S'), 3600.04)
self.assertEqual(parse_duration('PT00H03M30SZ'), 210)
+ self.assertEqual(parse_duration('P0Y0M0DT0H4M20.880S'), 260.88)
def test_fix_xml_ampersands(self):
self.assertEqual(