summaryrefslogtreecommitdiff
path: root/scripts/cli/test_system_nameserver.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 13:02:18 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-09 13:02:18 +0100
commit6c2a6e0153ea36e5690661f0dec634322352f21a (patch)
tree9c49abb8b5e22686ae1e5d528082ccb6b6e2429a /scripts/cli/test_system_nameserver.py
parent189b724dd7e5f4a5be4137809376127298bf9d25 (diff)
downloadvyos-1x-6c2a6e0153ea36e5690661f0dec634322352f21a.tar.gz
vyos-1x-6c2a6e0153ea36e5690661f0dec634322352f21a.zip
all: do not import entire module, use "from foo import" instead
Diffstat (limited to 'scripts/cli/test_system_nameserver.py')
-rwxr-xr-xscripts/cli/test_system_nameserver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/cli/test_system_nameserver.py b/scripts/cli/test_system_nameserver.py
index a07ad31ad..eba8acd80 100755
--- a/scripts/cli/test_system_nameserver.py
+++ b/scripts/cli/test_system_nameserver.py
@@ -18,8 +18,8 @@ import os
import re
import unittest
-import vyos.config
-import vyos.configsession
+from vyos.config import Config
+from vyos.configsession import ConfigSession, ConfigSessionError
import vyos.util as util
RESOLV_CONF = '/etc/resolv.conf'
@@ -33,9 +33,9 @@ def get_name_servers():
class TestSystemNameServer(unittest.TestCase):
def setUp(self):
- self.session = vyos.configsession.ConfigSession(os.getpid())
+ self.session = ConfigSession(os.getpid())
env = self.session.get_session_env()
- self.config = vyos.config.Config(session_env=env)
+ self.config = Config(session_env=env)
# Delete existing name servers
self.session.delete(base_path)