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: I019e56040f41a8a55fb6ba179e0f13ffcf053e3b
This commit is contained in:
Nguyen Hung Phuong 2016-09-16 10:51:36 +07:00
parent c60d2317f1
commit c0dbd9fc2e
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ from copy import deepcopy
import mock
from muranopkgcheck.tests import test_validator_helpers as helpers
from muranopkgcheck.validators.muranopl import MuranoPLValidator
from muranopkgcheck.validators import muranopl
MURANOPL_BASE = {
'Name': 'Instance',
@ -58,7 +58,7 @@ class MuranoPlTests(helpers.BaseValidatorTestClass):
super(MuranoPlTests, self).setUp()
self.loaded_package = mock.Mock()
self.loaded_package.format_version = '1.4'
self.mpl_validator = MuranoPLValidator(self.loaded_package)
self.mpl_validator = muranopl.MuranoPLValidator(self.loaded_package)
def test_import(self):
self.g = self.mpl_validator._valid_import(['aaa.bbb', 'ccc.ddd',