Beispiel #1
0
 def test_parse_time_int(self):
     """
     Test parsing time (integer).
     """
     t = str2time('2')
     self.assertEquals(2, t)
Beispiel #2
0
 def test_parse_time_empty(self):
     """
     Test parsing time (empty).
     """
     t = str2time('')
     self.assertEquals(1, t)
Beispiel #3
0
 def test_parse_time_float(self):
     """
     Test parsing time (float).
     """
     t = str2time('0.2')
     self.assertEquals(0.2, t)