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