|
|
@ -540,6 +540,7 @@ class TestUtil(unittest.TestCase):
|
|
|
|
self.assertEqual(parse_duration('87 Min.'), 5220)
|
|
|
|
self.assertEqual(parse_duration('87 Min.'), 5220)
|
|
|
|
self.assertEqual(parse_duration('PT1H0.040S'), 3600.04)
|
|
|
|
self.assertEqual(parse_duration('PT1H0.040S'), 3600.04)
|
|
|
|
self.assertEqual(parse_duration('PT00H03M30SZ'), 210)
|
|
|
|
self.assertEqual(parse_duration('PT00H03M30SZ'), 210)
|
|
|
|
|
|
|
|
self.assertEqual(parse_duration('P0Y0M0DT0H4M20.880S'), 260.88)
|
|
|
|
|
|
|
|
|
|
|
|
def test_fix_xml_ampersands(self):
|
|
|
|
def test_fix_xml_ampersands(self):
|
|
|
|
self.assertEqual(
|
|
|
|
self.assertEqual(
|
|
|
|