Exemple #1
0
 def test_time_one_hour_and_change(self):
     self.assertNear(Convert.convert_time('1:01:00.12'), 3660.12)
Exemple #2
0
 def test_time_one_hour(self):
     self.assertNear(Convert.convert_time('0:01:00.12'), 60.12)
Exemple #3
0
 def test_time_one_minute(self):
     self.assertNear(Convert.convert_time('0:01:00'), 60)
Exemple #4
0
 def test_time_one(self):
     self.assertNear(Convert.convert_time('0:01'), 1)
Exemple #5
0
 def test_time_zero(self):
     self.assertNear(Convert.convert_time('0:00'), 0)
Exemple #6
0
 def test_zero_not_time2(self):
     self.assertIs(Convert.convert_time('0'), None)