diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-12-04 17:35:40 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-12-04 17:35:40 +0100 |
commit | e8df5cee12378acd708b6686130a73c5edc06f0e (patch) | |
tree | 8d58243d31366dd03ae335426c188bab4db6b99e /test/test_utils.py | |
parent | ab07963b5cc79812c6fb7e4f9e363533d8123830 (diff) |
[minhateca] Fix duration parsing
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 04f1bf283..badab1370 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -220,6 +220,9 @@ class TestUtil(unittest.TestCase): self.assertEqual(parse_duration('0s'), 0) self.assertEqual(parse_duration('01:02:03.05'), 3723.05) self.assertEqual(parse_duration('T30M38S'), 1838) + self.assertEqual(parse_duration('5 s'), 5) + self.assertEqual(parse_duration('3 min'), 180) + self.assertEqual(parse_duration('2.5 hours'), 9000) def test_fix_xml_ampersands(self): self.assertEqual( |