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

Method test_escape_list_item

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

Source from the content-addressed store, hash-verified

979 con.escape({"foo": Foo()})
980
981 def test_escape_list_item(self):
982 con = self.connect()
983
984 mapping = con.encoders.copy()
985 mapping[Foo] = escape_foo
986 self.assertEqual(con.escape([Foo()], mapping), "(bar)")
987
988 def test_previous_cursor_not_closed(self):
989 con = self.connect(

Callers

nothing calls this directly

Calls 3

FooClass · 0.85
escapeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected