Example #1
0
 def test_negative_seconds_conversion(self):
     hms = sec_to_hms(-3661.0)
     self.assertEqual(hms, '-1:01:01.000')
Example #2
0
 def test_hour_conversion(self):
     hms = sec_to_hms(3600)
     self.assertEqual(hms, '1:00:00.000')
Example #3
0
 def test_seconds_with_fraction(self):
     hms = sec_to_hms(5.5)
     self.assertEqual(hms, '0:00:05.500')
Example #4
0
 def test_minute_conversion(self):
     hms = sec_to_hms(65)
     self.assertEqual(hms, '0:01:05.000')
Example #5
0
 def test_seconds_only_without_fraction(self):
     hms = sec_to_hms(5)
     self.assertEqual(hms, '0:00:05.000')