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

Method test_escape_no_default

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

Source from the content-addressed store, hash-verified

937 self.assertEqual(con.escape(Custom("foobar"), mapping), "'foobar'")
938
939 def test_escape_no_default(self):
940 con = self.connect()
941
942 self.assertRaises(TypeError, con.escape, 42, {})
943
944 def test_escape_dict_raise_typeerror(self):
945 """con.escape(dict) should raise TypeError"""

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected