(self)
| 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( |