summaryrefslogtreecommitdiff
path: root/src/tests/test_util.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-25 19:37:43 +0100
committerChristian Poessinger <christian@poessinger.com>2020-10-25 19:39:05 +0100
commitd1de4e0ae8d742b3e566fe662e425d319a35e380 (patch)
treec19707d5ef5cdd64e27b852ce59ca70e92d98658 /src/tests/test_util.py
parent44c57a59f24b32a384bdf42c3097882f6c32169e (diff)
downloadvyos-1x-d1de4e0ae8d742b3e566fe662e425d319a35e380.tar.gz
vyos-1x-d1de4e0ae8d742b3e566fe662e425d319a35e380.zip
test: import cleanup
Diffstat (limited to 'src/tests/test_util.py')
-rw-r--r--src/tests/test_util.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tests/test_util.py b/src/tests/test_util.py
index 09bf947b8..f7405cbde 100644
--- a/src/tests/test_util.py
+++ b/src/tests/test_util.py
@@ -14,10 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import unittest
from unittest import TestCase
-
-import vyos.util
+from vyos.util import mangle_dict_keys
class TestVyOSUtil(TestCase):
@@ -27,6 +25,6 @@ class TestVyOSUtil(TestCase):
def test_key_mangline(self):
data = {"foo-bar": {"baz-quux": None}}
expected_data = {"foo_bar": {"baz_quux": None}}
- new_data = vyos.util.mangle_dict_keys(data, '-', '_')
+ new_data = mangle_dict_keys(data, '-', '_')
self.assertEqual(new_data, expected_data)