def test_bucket_marginals(self):
        resFactor = VariableElimination.bucket_marginals(self.bn, ["winter"])
        np.testing.assert_array_almost_equal(resFactor.get_potential(), np.array([0.6, 0.4]))