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