def test_sanity_breaking_total():
     sel = SpringShootingSelector(delta_max=1, k_spring=1)
     sel._total_bias = sum([0, 0, 0])
     with pytest.raises(RuntimeError):
         sel.check_sanity()
    def test_sanity_breaking_bw():
        sel = SpringShootingSelector(delta_max=1, k_spring=1)
        sel._bw_prob_list = [0, 0, 0]

        with pytest.raises(RuntimeError):
            sel.check_sanity()