def METHOD_NAME(self, solver) -> None:
    # Int in objective.
    obj = cp.Minimize(cp.abs(self.y_int - 0.2))
    p = cp.Problem(obj, [])
    result = p.solve(solver=solver)
    self.assertAlmostEqual(result, 0.2)
    self.assertAlmostEqual(self.y_int.value, 0)
    # Infeasible integer problem
    t = cp.Variable()
    obj = cp.Minimize(t)
    p = cp.Problem(obj, [self.y_int == 0.5, t >= 0])
    result = p.solve(solver=solver)
    self.assertEqual(p.status in s.INF_OR_UNB, True)