aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNguyen Hung Phuong <phuongnh@vn.fujitsu.com>2016-09-12 15:15:21 +0700
committerNguyen Hung Phuong <phuongnh@vn.fujitsu.com>2016-09-12 15:17:28 +0700
commit253692630f156e81a7ea33d1fa9fc3708939a9c0 (patch)
tree3d4e24847c53a15d674e2f27949f88c8b08bba2c /tests
parent8c0f8daa22e3163041fc2bb5cd1ba5939247e600 (diff)
downloadkolla-253692630f156e81a7ea33d1fa9fc3708939a9c0.tar.gz
kolla-253692630f156e81a7ea33d1fa9fc3708939a9c0.zip
Clean imports in code
In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. http://docs.openstack.org/developer/hacking/#imports Change-Id: I4b55cae8c2672f82025a95112b14d441d66f9d6d
Diffstat (limited to 'tests')
-rw-r--r--tests/test_keystone.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_keystone.py b/tests/test_keystone.py
index 5145a2cfa..dbbba88ad 100644
--- a/tests/test_keystone.py
+++ b/tests/test_keystone.py
@@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-from tests.clients import OpenStackClients
+from tests import clients
import testtools
@@ -19,7 +19,7 @@ import testtools
class KeystoneTest(testtools.TestCase):
def setUp(self):
super(KeystoneTest, self).setUp()
- self.kc = OpenStackClients().get_client('KeystoneClient')
+ self.kc = clients.OpenStackClients().get_client('KeystoneClient')
def test_tenants(self):
result = self.kc.tenants.list()