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

Method test_escape_list_item

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

Source from the content-addressed store, hash-verified

952 con.escape({"foo": Foo()})
953
954 def test_escape_list_item(self):
955 con = self.connect()
956
957 mapping = con.encoders.copy()
958 mapping[Foo] = escape_foo
959 self.assertEqual(con.escape([Foo()], mapping), "(bar)")
960
961 def test_previous_cursor_not_closed(self):
962 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