MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / test_escape_builtin_encoders

Method test_escape_builtin_encoders

pymysql/tests/test_connection.py:918–922  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

916 self.assertEqual(con.escape("foo'bar"), "'foo''bar'")
917
918 def test_escape_builtin_encoders(self):
919 con = self.connect()
920
921 val = datetime.datetime(2012, 3, 4, 5, 6)
922 self.assertEqual(con.escape(val, con.encoders), "'2012-03-04 05:06:00'")
923
924 def test_escape_custom_object(self):
925 con = self.connect()

Callers

nothing calls this directly

Calls 2

escapeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected