'Test when P is constant and not symmetric.'

def test_non_symmetric(self):

    P = np.array([[2, 2], [3, 4]])
    x = cvxpy.Variable(2)
    cost = cvxpy.quad_form(x, P)
    prob = cvxpy.Problem(cvxpy.Minimize(cost), [(x == [1, 2])])
    self.assertAlmostEqual(prob.solve(), 28)
