]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Replace use of mox with mock in test_solidfire
authorJohn Griffith <john.griffith8@gmail.com>
Wed, 9 Dec 2015 07:03:37 +0000 (00:03 -0700)
committerJohn Griffith <john.griffith8@gmail.com>
Wed, 9 Dec 2015 07:03:37 +0000 (00:03 -0700)
Noticed we still had some old usage of mox, replace
the remaining cases of mox with mock in test_solidfire.py

Change-Id: I27c1b4ab04f401765a2ca4eb0ffe4d22da73af4e

cinder/tests/unit/test_solidfire.py

index 6a6018a17d9ad52c9d77cc723a66a4a644f55f6a..bf65402e8447b973477dac5cb1572c0661647f95 100644 (file)
@@ -17,7 +17,6 @@
 import datetime
 
 import mock
-from mox3 import mox
 from oslo_utils import timeutils
 from oslo_utils import units
 
@@ -31,16 +30,16 @@ from cinder.volume import volume_types
 
 
 def create_configuration():
-    configuration = mox.MockObject(conf.Configuration)
+    configuration = mock.Mock(conf.Configuration)
     configuration.san_is_local = False
-    configuration.append_config_values(mox.IgnoreArg())
+    configuration.append_config_values(mock.IgnoreArg())
     return configuration
 
 
 class SolidFireVolumeTestCase(test.TestCase):
     def setUp(self):
         self.ctxt = context.get_admin_context()
-        self.configuration = mox.MockObject(conf.Configuration)
+        self.configuration = mock.Mock(conf.Configuration)
         self.configuration.sf_allow_tenant_qos = True
         self.configuration.san_is_local = True
         self.configuration.sf_emulate_512 = True