Alphabetize imports in nova/tests/

Change-Id: Ib8e747f91f5277aecc3be01a5e8cee5bc911e823
This commit is contained in:
Joe Gordon 2012-05-14 14:42:29 -07:00
parent a76f08b971
commit 300ba2df11
80 changed files with 137 additions and 137 deletions

View File

@ -19,9 +19,9 @@ import json
from lxml import etree
import webob
from nova import test
from nova.api.openstack.compute.contrib import accounts
from nova.auth import manager as auth_manager
from nova import test
from nova.tests.api.openstack import fakes

View File

@ -22,10 +22,10 @@ from nova import compute
from nova import context
from nova import exception
from nova import flags
from nova import test
from nova import utils
from nova.scheduler import api as scheduler_api
from nova import test
from nova.tests.api.openstack import fakes
from nova import utils
FLAGS = flags.FLAGS

View File

@ -18,8 +18,8 @@ import datetime
from lxml import etree
from nova.api.openstack import common
from nova.api.openstack import wsgi
from nova.api.openstack.compute.contrib import cloudpipe
from nova.api.openstack import wsgi
from nova import db
from nova import flags
from nova import test

View File

@ -18,8 +18,8 @@
import webob
from nova.api.openstack.compute.contrib import deferred_delete
import nova.context
from nova import compute
import nova.context
from nova import exception
from nova import test

View File

@ -15,8 +15,8 @@
import json
import webob
from lxml import etree
import webob
from nova.api.openstack.compute.contrib import extended_server_attributes
from nova import compute

View File

@ -15,8 +15,8 @@
import json
import webob
from lxml import etree
import webob
from nova.api.openstack.compute.contrib import extended_status
from nova import compute

View File

@ -18,11 +18,11 @@ import json
import webob
from nova.api.openstack.compute.contrib import flavormanage
from nova.compute import instance_types
from nova import exception
from nova import test
from nova.tests.api.openstack import fakes
from nova.compute import instance_types
from nova.api.openstack.compute.contrib import flavormanage
def fake_get_instance_type_by_flavor_id(flavorid):

View File

@ -18,9 +18,9 @@ import json
import webob
from nova.compute import instance_types
from nova import test
from nova.tests.api.openstack import fakes
from nova.compute import instance_types
def fake_get_instance_type_by_flavor_id(flavorid):

View File

@ -17,8 +17,8 @@
import webob
from nova.api.openstack import wsgi
from nova.api.openstack.compute.contrib import flavorextraspecs
from nova.api.openstack import wsgi
from nova import test
from nova.tests.api.openstack import fakes
import nova.wsgi

View File

@ -18,16 +18,16 @@ from lxml import etree
import webob
from nova.api.openstack.compute.contrib import floating_ips
from nova import compute
from nova import context
from nova import db
from nova import exception
from nova import network
from nova import compute
from nova import rpc
from nova.rpc import common as rpc_common
from nova import test
from nova.tests import fake_network
from nova.tests.api.openstack import fakes
from nova.tests import fake_network
from nova import utils
FAKE_UUID = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'

View File

@ -16,16 +16,16 @@
from lxml import etree
import webob.exc
from nova.api.openstack.compute.contrib import hosts as os_hosts
from nova.compute import power_state
from nova.compute import vm_states
from nova import context
from nova import db
from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova.api.openstack.compute.contrib import hosts as os_hosts
from nova.compute import power_state
from nova.compute import vm_states
from nova.scheduler import api as scheduler_api
from nova import test
FLAGS = flags.FLAGS

View File

@ -15,11 +15,11 @@
import json
import webob
from lxml import etree
import webob
from nova.api.openstack import wsgi
from nova.api.openstack.compute.contrib import keypairs
from nova.api.openstack import wsgi
from nova import db
from nova import exception
from nova import test

View File

@ -13,11 +13,11 @@
# License for the specific language governing permissions and limitations
# under the License.
import webob
from lxml import etree
import webob
from nova.api.openstack import wsgi
from nova.api.openstack.compute.contrib import quota_classes
from nova.api.openstack import wsgi
from nova import test
from nova.tests.api.openstack import fakes

View File

@ -15,11 +15,11 @@
# License for the specific language governing permissions and limitations
# under the License.
import webob
from lxml import etree
import webob
from nova.api.openstack import wsgi
from nova.api.openstack.compute.contrib import quotas
from nova.api.openstack import wsgi
from nova import test
from nova.tests.api.openstack import fakes

View File

@ -22,11 +22,11 @@ from lxml import etree
import webob
from nova.api.openstack.compute.contrib import simple_tenant_usage
from nova import policy
from nova.common import policy as common_policy
from nova.compute import api
from nova import context
from nova import flags
from nova import policy
from nova import test
from nova.tests.api.openstack import fakes

View File

@ -25,8 +25,8 @@ from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova import volume
from nova.tests.api.openstack import fakes
from nova import volume
FLAGS = flags.FLAGS

View File

@ -18,10 +18,10 @@ import webob
from nova.api.openstack.compute.contrib import volumetypes
from nova import exception
from nova import test
from nova import log as logging
from nova.volume import volume_types
from nova import test
from nova.tests.api.openstack import fakes
from nova.volume import volume_types
LOG = logging.getLogger(__name__)

View File

@ -19,13 +19,13 @@ import json
from lxml import etree
import webob
import webob.exc
import webob.dec
import webob.exc
import nova.context
from nova import test
from nova.api import openstack as openstack_api
from nova.api.openstack import wsgi
import nova.context
from nova import test
from nova.tests.api.openstack import fakes

View File

@ -22,9 +22,9 @@ from lxml import etree
import webob
from nova.api.openstack.compute import consoles
from nova.compute import vm_states
from nova import console
from nova import db
from nova.compute import vm_states
from nova import exception
from nova import flags
from nova import test

View File

@ -18,13 +18,13 @@
import json
import webob
from lxml import etree
import iso8601
from lxml import etree
import webob
from nova.api.openstack import compute
from nova.api.openstack import extensions as base_extensions
from nova.api.openstack.compute import extensions as compute_extensions
from nova.api.openstack import extensions as base_extensions
from nova.api.openstack import wsgi
from nova.api.openstack import xmlutil
from nova import flags

View File

@ -26,8 +26,8 @@ import nova.compute.instance_types
from nova import exception
from nova import flags
from nova import test
from nova import utils
from nova.tests.api.openstack import fakes
from nova import utils
FLAGS = flags.FLAGS

View File

@ -25,14 +25,14 @@ import urlparse
from lxml import etree
import webob
from nova import exception
from nova import flags
from nova.api.openstack.compute import images
from nova.api.openstack.compute.views import images as images_view
from nova.api.openstack import xmlutil
from nova import exception
from nova import flags
from nova import test
from nova import utils
from nova.tests.api.openstack import fakes
from nova import utils
FLAGS = flags.FLAGS

View File

@ -39,8 +39,8 @@ from nova import flags
import nova.image.fake
import nova.rpc
from nova import test
from nova.tests import fake_network
from nova.tests.api.openstack import fakes
from nova.tests import fake_network
from nova import utils

View File

@ -26,11 +26,11 @@ from glance import client as glance_client
from nova.api import auth as api_auth
from nova.api import openstack as openstack_api
from nova.api.openstack import compute
from nova.api.openstack import auth
from nova.api.openstack import compute
from nova.api.openstack.compute import limits
from nova.api.openstack import urlmap
from nova.api.openstack.compute import versions
from nova.api.openstack import urlmap
from nova.api.openstack import wsgi as os_wsgi
import nova.auth.manager as auth_manager
from nova.compute import instance_types

View File

@ -24,10 +24,10 @@ import webob
import webob.exc
import xml.dom.minidom as minidom
from nova import exception
from nova import test
from nova.api.openstack import common
from nova.api.openstack import xmlutil
from nova import exception
from nova import test
from nova.tests import utils as test_utils

View File

@ -22,9 +22,9 @@ import webob
import webob.dec
import webob.exc
from nova import test
from nova.api.openstack import common
from nova.api.openstack import wsgi
from nova import test
class TestFaults(test.TestCase):

View File

@ -4,12 +4,12 @@ import inspect
import json
import webob
from nova.api.openstack import wsgi
import nova.context
from nova import exception
from nova import test
from nova import utils
from nova.api.openstack import wsgi
from nova.tests.api.openstack import fakes
import nova.context
from nova import utils
class RequestTest(test.TestCase):

View File

@ -17,8 +17,8 @@
from lxml import etree
from nova import test
from nova.api.openstack import xmlutil
from nova import test
class SelectorTest(test.TestCase):

View File

@ -18,8 +18,8 @@ import webob
from nova.api.openstack.volume.contrib import types_manage
from nova import exception
from nova import test
from nova.volume import volume_types
from nova.tests.api.openstack import fakes
from nova.volume import volume_types
def stub_volume_type(id):

View File

@ -18,9 +18,9 @@
import json
import webob
from lxml import etree
import iso8601
from lxml import etree
import webob
from nova.api.openstack import volume
from nova.api.openstack import xmlutil

View File

@ -16,8 +16,8 @@
from nova.api.openstack import volume
from nova.api.openstack.volume import snapshots
from nova.api.openstack.volume import volumes
from nova.api.openstack.volume import versions
from nova.api.openstack.volume import volumes
from nova.api.openstack import wsgi
from nova import flags
from nova import log as logging

View File

@ -23,8 +23,8 @@ from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova import volume
from nova.tests.api.openstack import fakes
from nova import volume
FLAGS = flags.FLAGS

View File

@ -19,8 +19,8 @@ import webob
from nova.api.openstack.volume import types
from nova import exception
from nova import test
from nova.volume import volume_types
from nova.tests.api.openstack import fakes
from nova.volume import volume_types
def stub_volume_type(id):

View File

@ -18,8 +18,8 @@
import base64
from nova import test
from nova.api import validator
from nova import test
class ValidatorTestCase(test.TestCase):

View File

@ -19,15 +19,15 @@ import functools
import mox
import StringIO
from nova import flags
from nova import test
from nova.compute import power_state
from nova.openstack.common import jsonutils
from nova.tests import fake_utils
from nova import exception
from nova import flags
from nova.openstack.common import jsonutils
from nova import test
from nova.tests import fake_utils
from nova.virt.baremetal import proxy
from nova.virt.baremetal import dom
from nova.virt.baremetal import proxy
FLAGS = flags.FLAGS

View File

@ -15,15 +15,15 @@
# License for the specific language governing permissions and limitations
# under the License.
import nova.compute.utils
import nova.context
from nova import db
from nova import exception
from nova import flags
from nova import utils
import nova.compute.utils
from nova.network import manager as network_manager
from nova.network.quantum import nova_ipam_lib
from nova.tests import fake_network_cache_model
from nova import utils
HOST = "testhost"

View File

@ -20,11 +20,11 @@ import datetime
import glance.common.exception as glance_exception
from nova.tests.api.openstack import fakes
from nova import context
from nova import exception
from nova.image import glance
from nova import test
from nova.tests.api.openstack import fakes
from nova.tests.glance import stubs as glance_stubs

View File

@ -20,8 +20,8 @@ import os
from nova import context
import nova.db.api
from nova import exception
from nova import test
from nova.image import s3
from nova import test
ami_manifest_xml = """<?xml version="1.0" ?>

View File

@ -14,8 +14,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import json
import httplib
import json
import urllib
import urlparse

View File

@ -18,10 +18,10 @@
import time
import unittest
import nova.virt.fake
from nova.log import logging
from nova.tests.integrated import integrated_helpers
from nova.tests.integrated.api import client
from nova.tests.integrated import integrated_helpers
import nova.virt.fake
LOG = logging.getLogger(__name__)

View File

@ -15,13 +15,13 @@
# License for the specific language governing permissions and limitations
# under the License.
import unittest
import time
import unittest
from nova import service
from nova.log import logging
from nova.tests.integrated import integrated_helpers
from nova import service
from nova.tests.integrated.api import client
from nova.tests.integrated import integrated_helpers
from nova.volume import driver

View File

@ -17,10 +17,10 @@
from lxml import etree
from nova.log import logging
from nova.tests.integrated import integrated_helpers
from nova.api.openstack import common
from nova.api.openstack import xmlutil
from nova.log import logging
from nova.tests.integrated import integrated_helpers
LOG = logging.getLogger(__name__)

View File

@ -23,10 +23,10 @@ from nova import context
from nova import db
from nova import flags
from nova import log as logging
from nova.network import linux_net
from nova.openstack.common import importutils
from nova import test
from nova import utils
from nova.network import linux_net
FLAGS = flags.FLAGS

View File

@ -27,9 +27,9 @@ from nova import log as logging
from nova.network.quantum import client as quantum_client
from nova.network.quantum import fake_client
from nova.network.quantum import manager as quantum_manager
from nova.network.quantum import quantum_connection
from nova.network.quantum import melange_connection
from nova.network.quantum import melange_ipam_lib
from nova.network.quantum import quantum_connection
from nova import test
from nova import utils

View File

@ -16,9 +16,9 @@
import nova
from nova import log as logging
import nova.notifier.api
from nova.notifier import list_notifier
import nova.notifier.log_notifier
import nova.notifier.no_op_notifier
from nova.notifier import list_notifier
from nova import test

View File

@ -24,9 +24,9 @@ from nova import context
from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova.rpc import amqp as rpc_amqp
from nova.rpc import common as rpc_common
from nova import test
from nova.tests.rpc import common
FLAGS = flags.FLAGS

View File

@ -23,8 +23,8 @@ from nova import context
from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova.rpc import amqp as rpc_amqp
from nova import test
from nova.tests.rpc import common
try:

View File

@ -29,8 +29,8 @@ from nova.rpc import amqp as rpc_amqp
from nova import test
try:
import qpid
from nova.rpc import impl_qpid
import qpid
except ImportError:
qpid = None
impl_qpid = None

View File

@ -17,8 +17,8 @@
from nova import exception
from nova import log as logging
from nova.volume import san
from nova import test
from nova.volume import san
LOG = logging.getLogger(__name__)

View File

@ -18,11 +18,11 @@
import webob
from nova.api import ec2
from nova.auth import manager
from nova import context
from nova import flags
from nova import test
from nova.api import ec2
from nova.auth import manager
FLAGS = flags.FLAGS

View File

@ -28,15 +28,15 @@ from boto.ec2 import regioninfo
from boto import exception as boto_exc
import webob
from nova import block_device
from nova import context
from nova import exception
from nova import test
from nova.api import auth
from nova.api import ec2
from nova.api.ec2 import apirequest
from nova.api.ec2 import ec2utils
from nova import block_device
from nova.compute import api as compute_api
from nova import context
from nova import exception
from nova import test
class FakeHttplibSocket(object):

View File

@ -18,12 +18,12 @@
import unittest
from nova.auth import fakeldap
from nova.auth import manager
from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova.auth import manager
from nova.auth import fakeldap
FLAGS = flags.FLAGS
LOG = logging.getLogger(__name__)

View File

@ -18,8 +18,8 @@ import contextlib
import os
import shutil
import StringIO
import textwrap
import tempfile
import textwrap
import unittest
import uuid

View File

@ -28,8 +28,8 @@ import mox
import nova
import nova.common.policy
from nova import compute
from nova.compute import api as compute_api
from nova.compute import aggregate_states
from nova.compute import api as compute_api
from nova.compute import instance_types
from nova.compute import manager as compute_manager
from nova.compute import power_state

View File

@ -17,18 +17,18 @@
"""Tests For miscellaneous util methods used with compute."""
from nova.compute import instance_types
from nova.compute import utils as compute_utils
from nova import context
from nova import db
from nova import flags
from nova import context
from nova import test
from nova import log as logging
from nova import utils
import nova.image.fake
from nova.compute import utils as compute_utils
from nova.compute import instance_types
from nova import log as logging
from nova.notifier import test_notifier
from nova.openstack.common import importutils
from nova import test
from nova.tests import fake_network
from nova import utils
LOG = logging.getLogger(__name__)

View File

@ -20,11 +20,11 @@
import datetime
from nova import test
from nova import context
from nova import db
from nova import exception
from nova import flags
from nova import test
from nova import utils
FLAGS = flags.FLAGS

View File

@ -16,9 +16,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from nova import test
from nova import exception
from nova import context
from nova import exception
from nova import test
class EC2APIErrorTestCase(test.TestCase):

View File

@ -20,8 +20,8 @@ import StringIO
from nova import context
from nova import exception
from nova import test
import nova.image
from nova import test
class _ImageTestCase(test.TestCase):

View File

@ -28,8 +28,8 @@ from nova import test
from nova import db
from nova import flags
from nova import log
from nova import image
from nova import log
from nova import utils
from nova.virt.libvirt import imagecache
from nova.virt.libvirt import utils as virtutils

View File

@ -17,15 +17,15 @@ Unit Tests for instance types code
"""
import time
from nova.compute import instance_types
from nova import context
from nova import db
from nova.db.sqlalchemy import models
from nova.db.sqlalchemy import session as sql_session
from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova.compute import instance_types
from nova.db.sqlalchemy import models
from nova.db.sqlalchemy import session as sql_session
FLAGS = flags.FLAGS
LOG = logging.getLogger(__name__)

View File

@ -17,8 +17,8 @@
# under the License.
"""Unit Tests for network code."""
from nova import test
from nova.network import linux_net
from nova import test
class IptablesManagerTestCase(test.TestCase):

View File

@ -40,18 +40,18 @@ from nova import log as logging
from nova.openstack.common import importutils
from nova.openstack.common import jsonutils
from nova import test
from nova.tests import fake_network
from nova.tests import fake_libvirt_utils
from nova.tests import fake_network
from nova import utils
from nova.virt import images
from nova.virt import driver
from nova.virt import firewall as base_firewall
from nova.virt import images
from nova.virt.libvirt import config
from nova.virt.libvirt import connection
from nova.virt.libvirt import firewall
from nova.virt.libvirt import utils as libvirt_utils
from nova.virt.libvirt import volume
from nova.volume import driver as volume_driver
from nova.virt.libvirt import utils as libvirt_utils
try:

View File

@ -18,9 +18,9 @@
from nova import db
from nova import exception
from nova import flags
from nova import test
from nova.network.quantum import melange_connection
from nova.network.quantum import melange_ipam_lib
from nova import test
FLAGS = flags.FLAGS

View File

@ -22,8 +22,8 @@ import base64
import webob
from nova.api.metadata import handler
from nova.db.sqlalchemy import api
from nova import db
from nova.db.sqlalchemy import api
from nova import exception
from nova import flags
from nova import network

View File

@ -24,16 +24,16 @@ properly both upgrading and downgrading, and that no data loss occurs
if possible.
"""
import ConfigParser
import commands
import ConfigParser
import os
import urlparse
from migrate.versioning import repository
import sqlalchemy
import nova.db.sqlalchemy.migrate_repo
import nova.db.migration as migration
import nova.db.sqlalchemy.migrate_repo
from nova.db.sqlalchemy.migration import versioning_api as migration_api
from nova import log as logging
from nova import test

View File

@ -25,8 +25,8 @@ import urllib2
import nova.flags
import nova.test
from nova.volume import nexenta
from nova.volume.nexenta import volume
from nova.volume.nexenta import jsonrpc
from nova.volume.nexenta import volume
FLAGS = nova.flags.FLAGS

View File

@ -17,8 +17,8 @@ import nova
from nova import context
from nova import flags
from nova import log
import nova.notifier.no_op_notifier
from nova.notifier import api as notifier_api
import nova.notifier.no_op_notifier
from nova import test

View File

@ -29,9 +29,9 @@ from boto import exception as boto_exception
from boto.s3 import connection as s3
from nova import flags
from nova import wsgi
from nova import test
from nova.objectstore import s3server
from nova import test
from nova import wsgi
FLAGS = flags.FLAGS

View File

@ -22,10 +22,10 @@ import StringIO
import urllib2
from nova.common import policy as common_policy
import nova.common.policy
from nova import context
from nova import exception
from nova import flags
import nova.common.policy
from nova import policy
from nova import test
from nova import utils

View File

@ -28,10 +28,10 @@ from nova import context
from nova import db
from nova import exception
from nova import flags
from nova.openstack.common import cfg
from nova import test
from nova import service
from nova import manager
from nova.openstack.common import cfg
from nova import service
from nova import test
from nova import wsgi

View File

@ -18,9 +18,9 @@
"""Tests for Signer."""
from nova.auth import signer
from nova import exception
from nova import test
from nova.auth import signer
class ClassWithStrRepr(object):

View File

@ -19,8 +19,8 @@ import datetime
import hashlib
import os
import os.path
import socket
import shutil
import socket
import StringIO
import tempfile

View File

@ -436,8 +436,8 @@ class LibvirtConnTestCase(_VirtDriverTestCase):
else:
self.saved_libvirt = None
import fakelibvirt
import fake_libvirt_utils
import fakelibvirt
sys.modules['libvirt'] = fakelibvirt

View File

@ -19,17 +19,17 @@
Test suite for VMWareAPI.
"""
from nova.compute import power_state
from nova import context
from nova import db
from nova import exception
from nova import flags
from nova import test
from nova.compute import power_state
from nova.tests.glance import stubs as glance_stubs
from nova.tests.vmwareapi import db_fakes
from nova.tests.vmwareapi import stubs
from nova.virt import vmwareapi_conn
from nova.virt.vmwareapi import fake as vmwareapi_fake
from nova.virt import vmwareapi_conn
FLAGS = flags.FLAGS

View File

@ -25,8 +25,8 @@ import cStringIO
import mox
from nova import context
from nova import exception
from nova import db
from nova import exception
from nova import flags
from nova import log as logging
from nova.notifier import test_notifier

View File

@ -19,13 +19,13 @@ Unit Tests for volume types code
import time
from nova import context
from nova.db.sqlalchemy import models
from nova.db.sqlalchemy import session as sql_session
from nova import exception
from nova import flags
from nova import log as logging
from nova import test
from nova.volume import volume_types
from nova.db.sqlalchemy import session as sql_session
from nova.db.sqlalchemy import models
FLAGS = flags.FLAGS
LOG = logging.getLogger(__name__)

View File

@ -39,15 +39,15 @@ from nova import log as logging
from nova.openstack.common import importutils
from nova import test
from nova.tests.db import fakes as db_fakes
from nova.tests.xenapi import stubs
from nova.tests.glance import stubs as glance_stubs
from nova.tests import fake_network
from nova.tests import fake_utils
from nova.tests.glance import stubs as glance_stubs
from nova.tests.xenapi import stubs
from nova.virt.xenapi import connection as xenapi_conn
from nova.virt.xenapi import fake as xenapi_fake
from nova.virt.xenapi import volume_utils
from nova.virt.xenapi import vmops
from nova.virt.xenapi import vm_utils
from nova.virt.xenapi import vmops
from nova.virt.xenapi import volume_utils
LOG = logging.getLogger(__name__)

View File

@ -21,10 +21,10 @@ Stubouts, mocks and fixtures for the test suite
import time
from nova import db
from nova import utils
from nova.compute import task_states
from nova.compute import vm_states
from nova import db
from nova import utils
def stub_out_db_instance_api(stubs):

View File

@ -19,11 +19,11 @@
Stubouts for the test suite
"""
from nova.virt import vmwareapi_conn
from nova.virt.vmwareapi import fake
from nova.virt.vmwareapi import vmware_images
from nova.virt.vmwareapi import vmops
from nova.virt.vmwareapi import network_utils
from nova.virt.vmwareapi import vmops
from nova.virt.vmwareapi import vmware_images
from nova.virt import vmwareapi_conn
def fake_get_vim_object(arg):

View File

@ -13,8 +13,8 @@
# under the License.
from nova import exception
from nova import log as logging
from nova.volume import san
from nova import test
from nova.volume import san
LOG = logging.getLogger(__name__)