]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix typo in cinder.tests.test_create_volume_flow
authorZhongyue Luo <zhongyue.nah@intel.com>
Mon, 9 Sep 2013 14:18:33 +0000 (22:18 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Tue, 10 Sep 2013 06:38:11 +0000 (14:38 +0800)
Mock is 3rd party so should be placed after 'time' package.
Changed sheduler -> scheduler

Change-Id: I9c8ef7980c0444a725232d03c29b39d4805586ff

cinder/tests/test_create_volume_flow.py

index e3e7452bd39d5c3cfb7f9307fbb5b36270b0ca85..1a493d06ed95454cc7ef533fc31b721e7127fe46 100644 (file)
 #    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())