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