Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErica Portnoy <ebportnoy@gmail.com>2017-03-30 17:47:36 +0300
committerBrad Warren <bmw@users.noreply.github.com>2017-03-30 17:47:36 +0300
commit52e22b22e5120d43f0a3b220d5ba48fca15cafe2 (patch)
tree50533c11ddb7ca7ce75449e8973febbecd171b7c /certbot-nginx
parent81fb5982357dd785925b3c11ea12dff56e6bb7f3 (diff)
Add additional Nginx parsing test case (#4440)
Diffstat (limited to 'certbot-nginx')
-rw-r--r--certbot-nginx/certbot_nginx/tests/nginxparser_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/certbot-nginx/certbot_nginx/tests/nginxparser_test.py b/certbot-nginx/certbot_nginx/tests/nginxparser_test.py
index 0a8dbd100..dd31ebac8 100644
--- a/certbot-nginx/certbot_nginx/tests/nginxparser_test.py
+++ b/certbot-nginx/certbot_nginx/tests/nginxparser_test.py
@@ -346,6 +346,8 @@ class TestRawNginxParser(unittest.TestCase):
self.assertEqual(parsed, [['directive', '$var']])
self.assertRaises(ParseException, loads, "server {server_name test.com};")
self.assertRaises(ParseException, loads, "directive ${var};")
+ self.assertEqual(loads("blag${dfgdfg};"), [['blag${dfgdfg}']])
+ self.assertRaises(ParseException, loads, "blag${dfgdf{g};")
class TestUnspacedList(unittest.TestCase):