def METHOD_NAME(self):
    G = self.G.copy()
    nx.set_edge_attributes(G, self.G_weights, "weight")
    constraint = nx.constraint(G, weight="weight")
    assert constraint["G"] == pytest.approx(0.299, abs=1e-3)
    assert constraint["A"] == pytest.approx(0.795, abs=1e-3)
    assert constraint["C"] == pytest.approx(1, abs=1e-3)