Replaced all imports of unittest2 with unitest imports

Change-Id: Id5796f5e1953dc9a0073f0e76a23ccce83c2bbd7
This commit is contained in:
Jose Idar 2015-03-30 10:47:33 -05:00
parent 09a514c997
commit fc0480e007
28 changed files with 27 additions and 28 deletions

View File

@ -15,7 +15,7 @@ limitations under the License.
""" """
import json import json
import unittest2 as unittest import unittest
from cloudcafe.compute.common.models.metadata import Metadata, MetadataItem from cloudcafe.compute.common.models.metadata import Metadata, MetadataItem

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.console_output_api.models.console_output\ from cloudcafe.compute.extensions.console_output_api.models.console_output\
import VncConsoleOutput import VncConsoleOutput

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.console_output_api.models.requests\ from cloudcafe.compute.extensions.console_output_api.models.requests\
import GetConsoleOutput import GetConsoleOutput

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.rescue_api.models.responses \ from cloudcafe.compute.extensions.rescue_api.models.responses \
import RescueResponse import RescueResponse

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.vnc_console_api.models.vnc_console\ from cloudcafe.compute.extensions.vnc_console_api.models.vnc_console\
import VncConsole import VncConsole

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.vnc_console_api.models.requests\ from cloudcafe.compute.extensions.vnc_console_api.models.requests\
import GetVncConsole import GetVncConsole

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from cloudcafe.compute.extensions.extensions_api.models.request import \ from cloudcafe.compute.extensions.extensions_api.models.request import \

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from httpretty import HTTPretty from httpretty import HTTPretty

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.flavors_api.models.flavor_access \ from cloudcafe.compute.flavors_api.models.flavor_access \
import FlavorAccess, FlavorAccessList import FlavorAccess, FlavorAccessList

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.flavors_api.models.flavor_extra_specs \ from cloudcafe.compute.flavors_api.models.flavor_extra_specs \
import FlavorExtraSpecs import FlavorExtraSpecs

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.common.constants import Constants from cloudcafe.compute.common.constants import Constants
from cloudcafe.compute.flavors_api.models.flavor import Flavor from cloudcafe.compute.flavors_api.models.flavor import Flavor

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.hosts_api.models.hosts import Host from cloudcafe.compute.hosts_api.models.hosts import Host

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.hypervisors_api.model.hypervisor import Hypervisors from cloudcafe.compute.hypervisors_api.model.hypervisor import Hypervisors

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.hypervisors_api.model.hypervisor import HypervisorsMin from cloudcafe.compute.hypervisors_api.model.hypervisor import HypervisorsMin

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.images_api.models.image import Image from cloudcafe.compute.images_api.models.image import Image

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.limits_api.models.limit import TenantLimits from cloudcafe.compute.limits_api.models.limit import TenantLimits

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.quotas_api.models.requests import UpdateQuotaRequest from cloudcafe.compute.quotas_api.models.requests import UpdateQuotaRequest

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.quotas_api.models.quotas import Quota from cloudcafe.compute.quotas_api.models.quotas import Quota

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.security_groups_api.models.\ from cloudcafe.compute.extensions.security_groups_api.models.\
requests import CreateSecurityGroupRule requests import CreateSecurityGroupRule

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.extensions.security_groups_api.models.\ from cloudcafe.compute.extensions.security_groups_api.models.\
security_group_rule import SecurityGroupRule security_group_rule import SecurityGroupRule

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from cloudcafe.compute.servers_api.models.requests import CreateServer from cloudcafe.compute.servers_api.models.requests import CreateServer

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.compute.common.types import ComputeTaskStates from cloudcafe.compute.common.types import ComputeTaskStates
from cloudcafe.compute.servers_api.models.servers import Server from cloudcafe.compute.servers_api.models.servers import Server

View File

@ -18,7 +18,7 @@ from copy import deepcopy
from httpretty import HTTPretty from httpretty import HTTPretty
import os import os
import re import re
import unittest2 as unittest import unittest
from cloudcafe.images.v2.client import ImagesClient from cloudcafe.images.v2.client import ImagesClient
from cloudcafe.images.v2.models.image import Image from cloudcafe.images.v2.models.image import Image

View File

@ -18,7 +18,7 @@ from copy import deepcopy
import dateutil.parser import dateutil.parser
import json import json
import os import os
import unittest2 as unittest import unittest
from cloudcafe.images.common.types import ( from cloudcafe.images.common.types import (
ImageContainerFormat, ImageDiskFormat, ImageStatus, ImageVisibility) ImageContainerFormat, ImageDiskFormat, ImageStatus, ImageVisibility)

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.images.v2.models.image import Member from cloudcafe.images.v2.models.image import Member

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from cloudcafe.images.v2.models.image import Members, Member from cloudcafe.images.v2.models.image import Members, Member

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
""" """
import unittest2 as unittest import unittest
from lbaascafe.lbaas.lbaas_api.clients.base_load_balancers_client \ from lbaascafe.lbaas.lbaas_api.clients.base_load_balancers_client \
import BaseLoadBalancersClient import BaseLoadBalancersClient

View File

@ -1,4 +1,3 @@
httpretty httpretty
unittest2
mock mock
flake8 flake8