]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Replace tearDown with addCleanup - Part 2"
authorJenkins <jenkins@review.openstack.org>
Fri, 2 May 2014 13:23:44 +0000 (13:23 +0000)
committerGerrit Code Review <review@openstack.org>
Fri, 2 May 2014 13:23:44 +0000 (13:23 +0000)
1  2 
cinder/tests/image/test_glance.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_glusterfs.py
cinder/tests/test_huawei_hvs.py
cinder/tests/test_huawei_t_dorado.py
cinder/tests/test_volume.py
cinder/tests/test_windows.py

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 524a4d02e95623941fbef76ff3ad0c80eadd3169,7108a2f81e15b7ec4d12e5f661f4fcdddcfc9568..8568eef9933826971c3f77f65f7df2494c9dd30c
@@@ -74,17 -66,16 +66,16 @@@ class TestWindowsDriver(test.TestCase)
          windows_utils.WindowsUtils.__init__ = fake_wutils__init__
  
      def fake_local_path(self, volume):
 -            return os.path.join(CONF.windows_iscsi_lun_path,
 -                                str(volume['name']) + ".vhd")
 +        return os.path.join(CONF.windows_iscsi_lun_path,
 +                            str(volume['name']) + ".vhd")
  
      def test_check_for_setup_errors(self):
-         mox = self._mox
          drv = self._driver
-         self._mox.StubOutWithMock(windows_utils.WindowsUtils,
-                                   'check_for_setup_error')
+         self.mox.StubOutWithMock(windows_utils.WindowsUtils,
+                                  'check_for_setup_error')
          windows_utils.WindowsUtils.check_for_setup_error()
  
-         mox.ReplayAll()
+         self.mox.ReplayAll()
  
          drv.check_for_setup_error()