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