def METHOD_NAME(self, solver_name):
    with self.assertRaises(
        RuntimeError,
        msg=f"The Pyomo persistent interface to {solver_name} could not be found.",
    ):
        _test_iis(solver_name)