def METHOD_NAME(self):
    w = {1: 10, 2: 2, 3: 30}
    M = ConcreteModel()
    M.x = Var([1, 2, 3], dense=True)
    M.c = SOSConstraint(
        [0, 1], var=M.x, weights=w, sos=1, index={0: [1, 2], 1: [2, 3]}
    )
    self.assertEqual(
        set((v.name, w) for v, w in M.c[0].get_items()),
        set((M.x[i].name, w[i]) for i in [1, 2]),
    )
    self.assertEqual(
        set((v.name, w) for v, w in M.c[1].get_items()),
        set((M.x[i].name, w[i]) for i in [2, 3]),
    )