diff options
author | Richard Panek <kernelpanek@users.noreply.github.com> | 2017-03-15 11:13:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-15 11:13:09 +0300 |
commit | f791af5afea61359da4576d006f3557236e69966 (patch) | |
tree | d502b25e7c8192bac767f7cce67e0a281a2d3074 /certbot-nginx | |
parent | e715b49dd2b826460f7871776e85f46bc2d8f1d2 (diff) |
New switch for QuotedStrings allows retainer of quotes but my test fails
Diffstat (limited to 'certbot-nginx')
-rw-r--r-- | certbot-nginx/certbot_nginx/tests/nginxparser_test.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/certbot-nginx/certbot_nginx/tests/nginxparser_test.py b/certbot-nginx/certbot_nginx/tests/nginxparser_test.py index 650090cb2..44bebb373 100644 --- a/certbot-nginx/certbot_nginx/tests/nginxparser_test.py +++ b/certbot-nginx/certbot_nginx/tests/nginxparser_test.py @@ -119,10 +119,13 @@ class TestRawNginxParser(unittest.TestCase): [['listen', '*:443'], [['location', '/'], [['body_filter_by_lua', - 'ngx.ctx.buffered = (ngx.ctx.buffered or "") .. string.sub(ngx.arg[1], 1, 1000)\n' - ' if ngx.arg[2] then\n' - ' ngx.var.resp_body = ngx.ctx.buffered\n' - ' end']]]]]]]]) + '\'ngx.ctx.buffered = (ngx.ctx.buffered or "")' + ' .. string.sub(ngx.arg[1], 1, 1000)\n' + ' ' + 'if ngx.arg[2] then\n' + ' ' + 'ngx.var.resp_body = ngx.ctx.buffered\n' + ' end\'']]]]]]]]) def test_abort_on_parse_failure(self): with open(util.get_data_filename('broken.conf')) as handle: |