Import module instead of object

According to the guidelines, we should import modules instead of classes
[1].

[1] http://docs.openstack.org/developer/hacking/#imports

Change-Id: I43d881597eb92e98196dad84776c0e229c288b6f
This commit is contained in:
Rodrigo Duarte Sousa
2016-09-13 10:49:21 -03:00
parent 71af540c81
commit be48540d92

View File

@@ -13,7 +13,7 @@
import uuid import uuid
from keystoneauth1.exceptions import http from keystoneauth1.exceptions import http
from keystoneclient.exceptions import ValidationError from keystoneclient import exceptions
from keystoneclient.tests.functional import base from keystoneclient.tests.functional import base
from keystoneclient.tests.functional.v3 import client_fixtures as fixtures from keystoneclient.tests.functional.v3 import client_fixtures as fixtures
@@ -74,11 +74,11 @@ class ProjectsTestCase(base.V3ClientTestCase):
self.check_project(project_ret, project.ref) self.check_project(project_ret, project.ref)
def test_get_project_invalid_params(self): def test_get_project_invalid_params(self):
self.assertRaises(ValidationError, self.assertRaises(exceptions.ValidationError,
self.client.projects.get, self.client.projects.get,
self.project_id, self.project_id,
subtree_as_list=True, subtree_as_ids=True) subtree_as_list=True, subtree_as_ids=True)
self.assertRaises(ValidationError, self.assertRaises(exceptions.ValidationError,
self.client.projects.get, self.client.projects.get,
self.project_id, self.project_id,
parents_as_list=True, parents_as_ids=True) parents_as_list=True, parents_as_ids=True)