'Test whether changing an array constant breaks DCP.'

def test_change_const(self):

    c = np.array([1, 2])
    expr = (c.T * square(self.x))
    self.x.value = [1, 1]
    self.assertAlmostEqual(expr.value, 3)
    assert expr.is_dcp()
    c[0] = (-1)
    self.assertAlmostEqual(expr.value, 3)
    assert expr.is_dcp()
