@mock.patch.object(os.path, 'isfile', spec_set=True, autospec=True)
    def test__parse_driver_info_with_deploy_iso_invalid(self, isfile_mock):
        isfile_mock.return_value = False

        with task_manager.acquire(self.context, self.node.uuid) as task:
            task.node.driver_info['irmc_deploy_iso'] = 'deploy.iso'
            error_msg = (_("Deploy ISO file, %(deploy_iso)s, "
                           "not found for node: %(node)s.") %
                         {'deploy_iso': '/remote_image_share_root/deploy.iso',
                          'node': task.node.uuid})

            e = self.assertRaises(exception.InvalidParameterValue,
                                  irmc_boot._parse_driver_info,
                                  task.node)
            self.assertEqual(error_msg, str(e))
With required 'irmc_deploy_iso' non existed.
dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/drivers/modules/irmc/test_boot.py/IRMCDeployPrivateMethodsTestCase.test__parse_driver_info_with_deploy_iso_invalid