def METHOD_NAME(self):
    """Test terms,weights,constant of QUBO generated by PortfolioOptimization class"""
    po_terms = [[0, 1], [0, 2], [1, 2], [0], [1], [2]]
    po_weights = [0.505, 0.505, 0.505, 0.535, 0.535, 0.535]
    po_constant = 0.8799999999999999
    mu = [0.1, 0.1, 0.1]
    sigma = [[0.01, 0.01, 0.01], [0.01, 0.01, 0.01], [0.01, 0.01, 0.01]]
    risk_factor = 0.1
    budget = 2
    penalty = 1
    qubo = PortfolioOptimization(mu, sigma, risk_factor, budget, penalty).qubo
    terms, weights = qubo.terms, qubo.weights
    constant = qubo.constant
    self.assertEqual(weights, po_weights)
    self.assertEqual(terms, po_terms)
    self.assertEqual(po_constant, constant)