MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_convert_time_with_fsp

Method test_convert_time_with_fsp

pymysql/tests/test_converters.py:85–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertEqual(time_obj, expected)
84
85 def test_convert_time_with_fsp(self):
86 expected = datetime.time(23, 6, 20, 511581)
87 time_obj = converters.convert_time("23:06:20.511581")
88 self.assertEqual(time_obj, expected)
89
90 def test_convert_time_rejects_non_dot_fraction(self):
91 raw = "23:06:20X511581"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected