summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-03-29 09:27:16 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-03-29 09:28:02 -0500
commitc57494027bd3b5865634c62ccd97f44e1d75c546 (patch)
tree4faaf1f0744015da6869adbce542dfbb02d2e8bd
parentd07ca83b23c05b1ec043eca420658fa310b9e662 (diff)
downloadvyos-1x-c57494027bd3b5865634c62ccd97f44e1d75c546.tar.gz
vyos-1x-c57494027bd3b5865634c62ccd97f44e1d75c546.zip
configtree: T5089: sorting of nodes is now implemented on parsing config
-rw-r--r--src/tests/test_config_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_config_parser.py b/src/tests/test_config_parser.py
index 6e0a071f8..8148aa79b 100644
--- a/src/tests/test_config_parser.py
+++ b/src/tests/test_config_parser.py
@@ -34,8 +34,8 @@ class TestConfigParser(TestCase):
def test_top_level_tag(self):
self.assertTrue(self.config.exists(["top-level-tag-node"]))
- # No sorting is intentional, child order must be preserved
- self.assertEqual(self.config.list_nodes(["top-level-tag-node"]), ["foo", "bar"])
+ # Sorting is now intentional, during parsing of config
+ self.assertEqual(self.config.list_nodes(["top-level-tag-node"]), ["bar", "foo"])
def test_copy(self):
self.config.copy(["top-level-tag-node", "bar"], ["top-level-tag-node", "baz"])