From: Oleg Broytman Date: Sat, 17 Sep 2016 16:00:52 +0000 (+0300) Subject: Add test for converting \' to '' X-Git-Tag: 0.0.6~19 X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=commitdiff_plain;h=25e57976afcadafdda5a99426cb20b1ca808f873 Add test for converting \' to '' --- 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():