Clean imports in code

This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: If61ea814058ba9cc2061e0949ee4e85bea7bac1c
This commit is contained in:
Cao Xuan Hoang 2016-09-06 14:33:00 +07:00
parent e476fe9344
commit c2d6d27521
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
# under the License.
import horizon
from ironic_ui.content.ironic.panel import Ironic
from ironic_ui.content.ironic import panel as i_panel
from openstack_dashboard.test import helpers as test
@ -23,4 +23,4 @@ class RegistrationTests(test.TestCase):
dashboard = horizon.get_dashboard('admin')
panel = dashboard.get_panel('ironic')
self.assertEqual(panel.__class__, Ironic)
self.assertEqual(panel.__class__, i_panel.Ironic)