X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest_tokens.py;h=b514b59ece81dd5de47a09284a6a5b87d719f1b9;hb=25e57976afcadafdda5a99426cb20b1ca808f873;hp=ffe5814ddc834c048328fd4c7296a0e5e14ab37c;hpb=19e5f010328b314a5ead4468ba11b1fcb27fe42f;p=sqlconvert.git 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():