'test delete_volume.'

@mock.patch.object(hbsd_basiclib, 'get_process_lock')
@mock.patch.object(hbsd_snm2.HBSDSNM2, 'exec_hsnm', side_effect=_exec_hsnm)
def test_delete_volume_error(self, arg1, arg2):

    self.assertRaises(exception.HBSDCmdError, self.driver.delete_volume, self.test_volume_error4)
