diff options
author | John Estabrook <jestabro@vyos.io> | 2025-03-18 12:19:57 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2025-03-20 10:02:55 -0500 |
commit | fbf871b3cdbbe6fd4fd6cad3281adc24438acc79 (patch) | |
tree | 7f8212bb8a40e2e8c44dbf713c6b67df846cfadd /src | |
parent | 39364b6a9f8c385b805ad01b0c14b313b29426be (diff) | |
download | vyos-1x-fbf871b3cdbbe6fd4fd6cad3281adc24438acc79.tar.gz vyos-1x-fbf871b3cdbbe6fd4fd6cad3281adc24438acc79.zip |
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") |