We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4481bdb commit 0dfce06Copy full SHA for 0dfce06
1 file changed
tests/test_MySQLdb_nonstandard.py
@@ -41,6 +41,12 @@ def test_client_info(self):
41
def test_thread_safe(self):
42
self.assertTrue(isinstance(_mysql.thread_safe(), int))
43
44
+ def test_escape_string(self):
45
+ self.assertEqual(_mysql.escape_string(b'foo"bar'),
46
+ b'foo\\"bar', "escape byte string")
47
+ self.assertEqual(_mysql.escape_string(u'foo"bar'),
48
+ b'foo\\"bar', "escape unicode string")
49
+
50
51
class CoreAPI(unittest.TestCase):
52
"""Test _mysql interaction internals."""
0 commit comments