diff options
Diffstat (limited to 'reconfigure/tests/parsers')
-rw-r--r-- | reconfigure/tests/parsers/bind9_tests.py | 5 | ||||
-rw-r--r-- | reconfigure/tests/parsers/exports_tests.py | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/reconfigure/tests/parsers/bind9_tests.py b/reconfigure/tests/parsers/bind9_tests.py index 3892319..b3dc8dd 100644 --- a/reconfigure/tests/parsers/bind9_tests.py +++ b/reconfigure/tests/parsers/bind9_tests.py @@ -61,6 +61,11 @@ import unittest class BIND9ParserHangTest (unittest.TestCase): source = """ + +controls { + inet * port 953 allow { 5.231.55.113; 127.0.0.1; } keys { "rndc-key"; }; +}; + options { listen-on port 53 { 127.0.0.1; }; listen-on-v6 port 53 { ::1; }; diff --git a/reconfigure/tests/parsers/exports_tests.py b/reconfigure/tests/parsers/exports_tests.py index e83552a..a9f1f80 100644 --- a/reconfigure/tests/parsers/exports_tests.py +++ b/reconfigure/tests/parsers/exports_tests.py @@ -6,7 +6,7 @@ from reconfigure.nodes import * class ExportsParserTest (BaseParserTest): parser = ExportsParser() source = """ -/another/exported/directory 192.168.0.3(rw,sync) \ +"/another/exported/directory" 192.168.0.3(rw,sync) \ 192.168.0.4(ro) # comment /one 192.168.0.1 @@ -42,8 +42,8 @@ class ExportsParserTest (BaseParserTest): @property def stringified(self): - return """/another/exported/directory\t192.168.0.3(rw,sync)\t192.168.0.4(ro) -/one\t192.168.0.1\t# comment + return """"/another/exported/directory"\t192.168.0.3(rw,sync)\t192.168.0.4(ro) +"/one"\t192.168.0.1\t# comment """ |