'Error case: Writing into horcmxxx.conf fails.(MSGID0632-E).'

@mock.patch.object(vsp_horcm, '_EXEC_MAX_WAITTIME', 5)
@mock.patch.object(utils, 'brick_get_connector_properties', side_effect=_brick_get_connector_properties)
@mock.patch.object(processutils, 'execute', side_effect=_execute)
@mock.patch.object(os.path, 'exists', side_effect=_fake_exists)
@mock.patch.object(os, 'access', side_effect=_access)
@mock.patch.object(vsp_utils, 'execute', side_effect=_execute)
def test_do_setup_failed_to_create_conf(self, vsp_utils_execute, access, exists, processutils_execute, brick_get_connector_properties):

    drv = vsp_fc.VSPFCDriver(configuration=self.configuration, db=db)
    self._setup_config()
    self.configuration.vsp_horcm_numbers = (500, 501)
    self.configuration.vsp_horcm_add_conf = True
    self.assertRaises(exception.VSPError, drv.do_setup, None)
