aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-22 23:15:22 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-22 23:15:22 +0800
commit9c29bc69f7d6365835f495dff10f3c5f49671a55 (patch)
treecf0bc8fe413efc9156f223d5d26c023ed8890d91 /test
parent1e124295644e3760cd457bb1a6ae717e1cb2c0fc (diff)
[utils] Improve parse_duration
Now dots are parsed. For example '87 Min.'
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 e13e11b59..65692a9fb 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -324,6 +324,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(parse_duration('02:03:04'), 7384)
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)
def test_fix_xml_ampersands(self):
self.assertEqual(