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

Method test_convert_datetime

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

Source from the content-addressed store, hash-verified

13 self.assertEqual(converters.escape_string("foo\nbar"), "foo\\nbar")
14
15 def test_convert_datetime(self):
16 expected = datetime.datetime(2007, 2, 24, 23, 6, 20)
17 dt = converters.convert_datetime("2007-02-24 23:06:20")
18 self.assertEqual(dt, expected)
19
20 def test_convert_datetime_with_fsp(self):
21 expected = datetime.datetime(2007, 2, 24, 23, 6, 20, 511581)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected