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

Method test_escape_no_default

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

Source from the content-addressed store, hash-verified

964 self.assertEqual(con.escape(Custom("foobar"), mapping), "'foobar'")
965
966 def test_escape_no_default(self):
967 con = self.connect()
968
969 self.assertRaises(TypeError, con.escape, 42, {})
970
971 def test_escape_dict_raise_typeerror(self):
972 """con.escape(dict) should raise TypeError"""

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected