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()