diff options
Diffstat (limited to 'src/tests/test_util.py')
-rw-r--r-- | src/tests/test_util.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/test_util.py b/src/tests/test_util.py index 473052bef..27ee648d4 100644 --- a/src/tests/test_util.py +++ b/src/tests/test_util.py @@ -15,14 +15,15 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from unittest import TestCase -from vyos.util import * class TestVyOSUtil(TestCase): - def test_key_mangline(self): + def test_key_mangling(self): + from vyos.utils.dict 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') |