Esempio n. 1
0
 def test_time_to_str3(self):
     str_time = "10:10"
     time_obj = datetime.strptime(str_time, '%H:%M').time()
     assert "10:10" == DateUtil.time_to_str(time_obj)
Esempio n. 2
0
 def test_time_to_str2(self):
     str_time = "08:01"
     time_obj = datetime.strptime(str_time, '%H:%M').time()
     assert "08:01" == DateUtil.time_to_str(time_obj)