diff options
author | John Estabrook <jestabro@vyos.io> | 2025-03-20 11:59:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-20 11:59:27 -0500 |
commit | 7eec4583bf7feb900fad02e009b9ded11b52fd5d (patch) | |
tree | 7f8212bb8a40e2e8c44dbf713c6b67df846cfadd /src | |
parent | 39364b6a9f8c385b805ad01b0c14b313b29426be (diff) | |
parent | fbf871b3cdbbe6fd4fd6cad3281adc24438acc79 (diff) | |
download | vyos-1x-7eec4583bf7feb900fad02e009b9ded11b52fd5d.tar.gz vyos-1x-7eec4583bf7feb900fad02e009b9ded11b52fd5d.zip |
Merge pull request #4407 from jestabro/relax-lexer-test
T7246: update libvyosconfig hash and add nosetest
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test_config_parser.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_config_parser.py b/src/tests/test_config_parser.py index 9a4f02859..1b4a57311 100644 --- a/src/tests/test_config_parser.py +++ b/src/tests/test_config_parser.py @@ -51,3 +51,7 @@ class TestConfigParser(TestCase): def test_rename_duplicate(self): with self.assertRaises(vyos.configtree.ConfigTreeError): self.config.rename(["top-level-tag-node", "foo"], "bar") + + def test_leading_slashes(self): + self.assertTrue(self.config.exists(["normal-node", "value-with-leading-slashes"])) + self.assertEqual(self.config.return_value(["normal-node", "value-with-leading-slashes"]), "//other-value") |