From ac60fe7d1840b8768542ee4b3f28f46544c290f2 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 12 Jul 2023 21:25:10 +0200 Subject: T5195: drop sysctl_* implementation from vyos.util - prefer vyos.utils.system --- src/tests/test_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/test_util.py b/src/tests/test_util.py index 473052bef..2e8f1b6cc 100644 --- a/src/tests/test_util.py +++ b/src/tests/test_util.py @@ -15,14 +15,15 @@ # along with this program. If not, see . from unittest import TestCase -from vyos.util import * class TestVyOSUtil(TestCase): def test_key_mangline(self): + from vyos.util import mangle_dict_keys data = {"foo-bar": {"baz-quux": None}} expected_data = {"foo_bar": {"baz_quux": None}} new_data = mangle_dict_keys(data, '-', '_') self.assertEqual(new_data, expected_data) def test_sysctl_read(self): + from vyos.utils.system import sysctl_read self.assertEqual(sysctl_read('net.ipv4.conf.lo.forwarding'), '1') -- cgit v1.2.3