aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-13 06:01:13 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-13 06:01:13 +0000
commitb1522c34d95f9bb48fc9cfca91f281da2f958953 (patch)
tree66cf229aad9d6109283eecc70334853634251988 /functest/tests/unit
parent67706058e7627cd3109e141caf6901be34922910 (diff)
parente7eee58cd132f4f68cdf3e319bae6b0283fd2678 (diff)
Merge "Export env vars via os.environ in test_openstack_utils.py"
Diffstat (limited to 'functest/tests/unit')
-rw-r--r--functest/tests/unit/utils/test_openstack_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/tests/unit/utils/test_openstack_utils.py b/functest/tests/unit/utils/test_openstack_utils.py
index 0a7177fc..259e60d5 100644
--- a/functest/tests/unit/utils/test_openstack_utils.py
+++ b/functest/tests/unit/utils/test_openstack_utils.py
@@ -9,12 +9,12 @@
import copy
import logging
+import os
import unittest
import mock
from functest.utils import openstack_utils
-from functest.utils.constants import CONST
class OSUtilsTesting(unittest.TestCase):
@@ -1577,7 +1577,7 @@ class OSUtilsTesting(unittest.TestCase):
def test_create_tenant_default(self):
with mock.patch('functest.utils.openstack_utils.'
'is_keystone_v3', return_value=True):
- CONST.__setattr__('OS_PROJECT_DOMAIN_NAME', 'Default')
+ os.environ['OS_PROJECT_DOMAIN_NAME'] = 'Default'
self.assertEqual(openstack_utils.
create_tenant(self.keystone_client,
'test_tenant',