X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Ftest_tokens.py;h=d537d73f068291c2eb3d9a13773ba31c9cccf5ef;hb=6d906e2f335699348bf44a653ca708b522a99d85;hp=ffe5814ddc834c048328fd4c7296a0e5e14ab37c;hpb=19e5f010328b314a5ead4468ba11b1fcb27fe42f;p=sqlconvert.git diff --git a/tests/test_tokens.py b/tests/test_tokens.py index ffe5814..d537d73 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\\\"\\n')")[0] unescape_strings(parsed) query = tlist2str(parsed) - assert query == u"INSERT INTO test VALUES ('\"test\"')" + assert query == u"INSERT INTO test VALUES ('\"te''st\"\n')" def test_process():