def test_unsupported(self):
        drv = self.asm.add('driver', MyDriver())
        self.asm.run()
        try:
            drv.add_constraint('-98 < comp1.a < 101')
        except __HOLE__ as err:
            self.assertEqual(str(err), "driver: Double-sided constraints are not supported on this driver.")
        else:
            self.fail("Exception expected")
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_hasconstraints.py/Has2SidedConstraintsTestCase.test_unsupported