From: Zhongyue Luo Date: Mon, 9 Sep 2013 14:18:33 +0000 (+0800) Subject: Fix typo in cinder.tests.test_create_volume_flow X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0416e5124307433c4cb8333ab5636490db84fada;p=openstack-build%2Fcinder-build.git Fix typo in cinder.tests.test_create_volume_flow Mock is 3rd party so should be placed after 'time' package. Changed sheduler -> scheduler Change-Id: I9c8ef7980c0444a725232d03c29b39d4805586ff --- diff --git a/cinder/tests/test_create_volume_flow.py b/cinder/tests/test_create_volume_flow.py index e3e7452bd..1a493d06e 100644 --- a/cinder/tests/test_create_volume_flow.py +++ b/cinder/tests/test_create_volume_flow.py @@ -14,15 +14,16 @@ # under the License. """ Tests for create_volume TaskFlow """ -import mock import time +import mock + from cinder import context from cinder import test from cinder.volume.flows import create_volume -class fake_sheduler_rpc_api(object): +class fake_scheduler_rpc_api(object): def __init__(self, expected_spec, test_inst): self.expected_spec = expected_spec self.test_inst = test_inst @@ -87,7 +88,7 @@ class CreateVolumeFlowTestCase(test.TestCase): 'snapshot_id': None, 'image_id': None} - task = create_volume.VolumeCastTask(fake_sheduler_rpc_api(spec, self), + task = create_volume.VolumeCastTask(fake_scheduler_rpc_api(spec, self), fake_volume_api(spec, self), fake_db()) @@ -98,7 +99,7 @@ class CreateVolumeFlowTestCase(test.TestCase): 'snapshot_id': 3, 'image_id': 4} - task = create_volume.VolumeCastTask(fake_sheduler_rpc_api(spec, self), + task = create_volume.VolumeCastTask(fake_scheduler_rpc_api(spec, self), fake_volume_api(spec, self), fake_db())