def test_time_one_hour_and_change(self): self.assertNear(Convert.convert_time('1:01:00.12'), 3660.12)
def test_time_one_hour(self): self.assertNear(Convert.convert_time('0:01:00.12'), 60.12)
def test_time_one_minute(self): self.assertNear(Convert.convert_time('0:01:00'), 60)
def test_time_one(self): self.assertNear(Convert.convert_time('0:01'), 1)
def test_time_zero(self): self.assertNear(Convert.convert_time('0:00'), 0)
def test_zero_not_time2(self): self.assertIs(Convert.convert_time('0'), None)