From 25e57976afcadafdda5a99426cb20b1ca808f873 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 17 Sep 2016 19:00:52 +0300 Subject: [PATCH] Add test for converting \' to '' --- tests/test_tokens.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_tokens.py b/tests/test_tokens.py index ffe5814..b514b59 100644 --- a/tests/test_tokens.py +++ b/tests/test_tokens.py @@ -43,10 +43,10 @@ def test_requote(): def test_string(): - parsed = parse("insert into test values ('\"test\\\"')")[0] + parsed = parse("insert into test values ('\"te\\'st\\\"')")[0] unescape_strings(parsed) query = tlist2str(parsed) - assert query == u"INSERT INTO test VALUES ('\"test\"')" + assert query == u"INSERT INTO test VALUES ('\"te''st\"')" def test_process(): -- 2.39.2