def test_time_string_to_seconds_static(self): self.assertAlmostEqual(11.45, Entry._time_string_to_seconds('11.45')) self.assertAlmostEqual(61.34, Entry._time_string_to_seconds('1:01.34')) self.assertAlmostEqual(7201.24, Entry._time_string_to_seconds('2:00:01.24')) self.assertAlmostEqual(3601.24, Entry._time_string_to_seconds('01:00:01.24')) with self.assertRaises(TmsError): Entry._time_string_to_seconds('17.4h')