aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/common/test_utils.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-10 03:56:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-10 03:56:50 +0000
commit2ad96094b99e007f5ef46aced3b69a9ced558da3 (patch)
treeadccfc44324e9feb05e15aaf03a2972277dba13c /tests/unit/common/test_utils.py
parentdaa256f05a1f42f66a84ad96321bc609aeb1f75b (diff)
parent97004997c00dac2e0dcfeef303af4701e78bb909 (diff)
Merge "constants: cache YAML config values"
Diffstat (limited to 'tests/unit/common/test_utils.py')
-rw-r--r--tests/unit/common/test_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/common/test_utils.py b/tests/unit/common/test_utils.py
index 948f8fc98..f29de5ca0 100644
--- a/tests/unit/common/test_utils.py
+++ b/tests/unit/common/test_utils.py
@@ -21,6 +21,7 @@ import mock
from six.moves import configparser
from yardstick.common import utils
+from yardstick.common import constants
class IterSubclassesTestCase(unittest.TestCase):
@@ -99,7 +100,7 @@ class GetParaFromYaml(unittest.TestCase):
get_env.return_value = self._get_file_abspath(file_path)
args = 'releng.file'
default = 'hello'
- self.assertTrue(utils.get_param(args, default), default)
+ self.assertTrue(constants.get_param(args, default), default)
@mock.patch('yardstick.common.utils.os.environ.get')
def test_get_param_para_exists(self, get_env):
@@ -107,7 +108,7 @@ class GetParaFromYaml(unittest.TestCase):
get_env.return_value = self._get_file_abspath(file_path)
args = 'releng.dir'
para = '/home/opnfv/repos/releng'
- self.assertEqual(para, utils.get_param(args))
+ self.assertEqual(para, constants.get_param(args))
def _get_file_abspath(self, filename):
curr_path = os.path.dirname(os.path.abspath(__file__))