diff options
author | Andrew Shadura <andrew@shadura.me> | 2015-08-20 15:58:30 +0200 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-08-20 15:58:30 +0200 |
commit | fec1da7e6ea8a3b3b03befa4ff8dd31d539f163d (patch) | |
tree | f349cf4e0bf6198660dfc1f0cfeec567b0bb84c5 /reconfigure/tests/parsers/shell_tests.py | |
parent | 25d6c405aff4167e801d0a4995083a56160b969e (diff) |
Imported Upstream version 0.1.50+git20140603
Diffstat (limited to 'reconfigure/tests/parsers/shell_tests.py')
-rw-r--r-- | reconfigure/tests/parsers/shell_tests.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/reconfigure/tests/parsers/shell_tests.py b/reconfigure/tests/parsers/shell_tests.py new file mode 100644 index 0000000..8578d2e --- /dev/null +++ b/reconfigure/tests/parsers/shell_tests.py @@ -0,0 +1,20 @@ +from reconfigure.tests.parsers.base_test import BaseParserTest +from reconfigure.parsers import ShellParser +from reconfigure.nodes import * + + +class ShellParserTest (BaseParserTest): + parser = ShellParser() + source = """ +# The following +# otherwise they +PORTS_pop3d="110,995" +PORTS_htpasswd="80,443" # b +""" + parsed = RootNode( + None, + PropertyNode('PORTS_pop3d', '110,995', comment='The following\notherwise they'), + PropertyNode('PORTS_htpasswd', '80,443', comment='b'), + ) + +del BaseParserTest |