def test_remove_export_fail_1(self):
     self.nms_mock.scsidisk.delete_lu('nova/volume1')
     self.nms_mock.stmf.destroy_targetgroup('nova/volume1')
     self.nms_mock.iscsitarget.delete_target('iqn:volume1').AndRaise(
         nexenta.NexentaException())
     self.mox.ReplayAll()
     self.drv.remove_export({}, self.TEST_VOLUME_REF)
 def _stub_export_method(self, module, method, args, error, fail=False):
     m = getattr(self.nms_mock, module)
     m = getattr(m, method)
     mock = m(*args)
     if fail:
         mock.AndRaise(nexenta.NexentaException(error))