def test_that_bouds_are_properly_stored(self): b = Bounds(np.array([1, 1]), np.array([10, 10])) self.assertTrue(np.all(np.equal(b.lower(), np.array([1, 1])))) self.assertTrue(np.all(np.equal(b.upper(), np.array([10, 10]))))
def test_that_upper_bound_must_be_greater_equal_3(self): b = Bounds(np.array([1, 1]), np.array([1, 1])) self.assertTrue(np.all(np.equal(b.lower(), np.array([1, 1])))) self.assertTrue(np.all(np.equal(b.upper(), np.array([1, 1]))))