'test delete_snapshot.'

@mock.patch.object(hbsd_basiclib, 'get_process_lock')
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'exec_raidcom', side_effect=_exec_raidcom)
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'start_horcm', return_value=[0, '', ''])
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'check_horcm', return_value=[0, '', ''])
def test_delete_snapshot_error(self, arg1, arg2, arg3, arg4):

    self.assertRaises(exception.HBSDCmdError, self.driver.delete_snapshot, self.test_snapshot_error)
    return
