Ejemplo n.º 1
0
 def test_convert_time_with_fsp(self):
     expected = datetime.time(23, 6, 20, 511581)
     time_obj = converters.convert_time('23:06:20.511581')
     self.assertEqual(time_obj, expected)
Ejemplo n.º 2
0
 def test_convert_time(self):
     expected = datetime.time(23, 6, 20)
     time_obj = converters.convert_time('23:06:20')
     self.assertEqual(time_obj, expected)